We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aefc62 commit 8b8856fCopy full SHA for 8b8856f
1 file changed
.github/workflows/dependabot-automerge.yml
@@ -10,7 +10,16 @@ jobs:
10
runs-on: ubuntu-latest
11
if: github.actor == 'dependabot[bot]'
12
steps:
13
- - name: Enable automerge for Dependabot PRs
+ - name: Fetch Dependabot Metadata
14
+ id: metadata
15
+ uses: dependabot/fetch-metadata@v2
16
+ with:
17
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
18
+
19
+ - name: Enable automerge for Patch and Minor updates
20
+ if: |
21
+ steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
22
+ steps.metadata.outputs.update-type == 'version-update:semver-minor'
23
run: gh pr merge --auto --merge "$PR_URL"
24
env:
25
PR_URL: ${{ github.event.pull_request.html_url }}
0 commit comments