Skip to content

Commit 98111c3

Browse files
authored
Merge pull request #125 from seamapi/fix_dependabot_merge_workflow
fix: dependabot workflow auto merge
2 parents af17677 + c2dcf7a commit 98111c3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/auto-merge-dependabot.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permissions:
55
contents: write
66
pull-requests: write
77

8+
# This workflow enables auto-merge for Dependabot PRs
9+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
810
jobs:
911
dependabot:
1012
runs-on: ubuntu-latest
@@ -15,13 +17,8 @@ jobs:
1517
uses: dependabot/fetch-metadata@v1
1618
with:
1719
github-token: "${{ secrets.GITHUB_TOKEN }}"
18-
- name: Approve a PR
19-
run: gh pr review --approve "$PR_URL"
20-
env:
21-
PR_URL: ${{github.event.pull_request.html_url}}
22-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2320
- name: Enable auto-merge for Dependabot PRs
24-
if: contains(steps.metadata.outputs.dependency-names, '@seamapi/*')
21+
if: contains(steps.metadata.outputs.dependency-names, '@seamapi/')
2522
run: gh pr merge --auto --merge "$PR_URL"
2623
env:
2724
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)