Skip to content

Commit

Permalink
Check automerge against PR owner, not github.actor
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianDAlessandro committed Jul 4, 2024
1 parent e2bf261 commit b036326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
auto-merge:
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 Dependabot PRs
run: |
Expand Down

0 comments on commit b036326

Please sign in to comment.