diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index f578d9e6636..d5489e7ab8f 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -43,6 +43,8 @@ jobs: name: Checkout repository uses: actions/checkout@v4 with: + # Checkout the merge commit instead of the pull request head commit for a pull request + # Fallback to the head commit if its not a pull request ref: ${{ github.event.pull_request.number != '' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }} - if: steps.should_run.outputs.shouldrun == 'true'