diff --git a/.github/workflows/check-en-revision.yml b/.github/workflows/check-en-revision.yml index 4aab437a1..9fd190162 100644 --- a/.github/workflows/check-en-revision.yml +++ b/.github/workflows/check-en-revision.yml @@ -18,9 +18,15 @@ jobs: name: "Check EN-Revision" runs-on: ubuntu-latest steps: + # The explicit ref takes the real head of the pull request, not the merge + # commit actions/checkout builds by default: that one has master as its + # second parent, so the diff below would also list every file landed on + # master since the last push to the pull request. + - name: "Checkout translation" uses: actions/checkout@v7 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: "Checkout php/doc-en"