diff --git a/.github/workflows/merge-check.yml b/.github/workflows/merge-check.yml index 953c4800fb..6694d94d92 100644 --- a/.github/workflows/merge-check.yml +++ b/.github/workflows/merge-check.yml @@ -27,7 +27,7 @@ jobs: run: | git fetch origin master:master git checkout master - if [ "${{ github.event_name }}" == "pull_request" ]; then + if [[ "${{ github.event_name }}" == "pull_request"* ]]; then git merge --ff-only ${{ github.event.pull_request.head.sha }} else git merge --ff-only ${{ github.sha }}