Skip to content

Commit

Permalink
Fix dependabot auto-approve workflow (#543)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke authored Aug 18, 2023
1 parent e0d9bc3 commit be0b3ba
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dependabot auto-approve and merge
name: Dependabot auto-approve
on: pull_request

permissions:
Expand All @@ -15,14 +15,8 @@ jobs:
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Approve a PR
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit be0b3ba

Please sign in to comment.