Skip to content

Commit

Permalink
Merge pull request #444 from imperialCHEPI/fix_automerge_workflow
Browse files Browse the repository at this point in the history
Fix automerge workflow: use PR author not GitHub actor
  • Loading branch information
alexdewar authored Jun 17, 2024
2 parents a69d3b9 + 7068efd commit 756f269
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: gh pr merge --auto --merge "$PR_URL"
Expand Down

0 comments on commit 756f269

Please sign in to comment.