Skip to content

Commit

Permalink
Merge pull request #137 from randovania/bugfix/auto-approve-dependabot
Browse files Browse the repository at this point in the history
Fix how dependabot PRs are approved
  • Loading branch information
henriquegemignani authored Jan 16, 2025
2 parents 1e91e3a + ba77223 commit 473a001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ permissions:
jobs:
dependency:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }}
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
steps:
- name: Enable auto-merge for Dependency PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Automatically approve the PR
uses: hmarr/auto-approve-action@v4
uses: hmarr/auto-approve-action@v4

0 comments on commit 473a001

Please sign in to comment.