diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index a0fb664221c..f578d9e6636 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -43,7 +43,7 @@ jobs: name: Checkout repository uses: actions/checkout@v4 with: - ref: refs/pull/${{ github.event.pull_request.number }}/merge + 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' name: Check if Node.js project and has package.json