You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Dependabot Auto Merge
v1.1.0
Automatically merge Dependabot PRs when version comparison is within range
name: auto-merge
on:
pull_request:
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v1
Use a specific user's Personal Access Token:
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v1
with:
target: patch
github-token: ${{ secrets.mytoken }}
Only merge if the changed dependency version is a patch
(default behavior):
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v1
with:
target: patch
Only merge if the changed dependency version is a minor
:
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v1
with:
target: minor
Only merge if the changed dependency version is a major
:
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v1
with:
target: major
output | required | default | description |
---|---|---|---|
target |
❌ | patch |
The version comparison target (major, minor, patch) |
github-token |
❌ | github.token |
The GitHub token used to merge the pull-request |