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