Skip to content

Commit

Permalink
Fix merge gatekeeper on PRs (#290)
Browse files Browse the repository at this point in the history
`github.ref` breaks PRs, but works for merge queues, make it
conditional.

See upsidr/merge-gatekeeper#71

---------

Co-authored-by: Marcin Michalski <[email protected]>
  • Loading branch information
ben-challis and marmichalski authored Mar 2, 2024
1 parent 12327fe commit b76c26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/merge-gatekeeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
uses: upsidr/merge-gatekeeper@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}

0 comments on commit b76c26c

Please sign in to comment.