diff --git a/.github/workflows/on-pr.yaml b/.github/workflows/on-pr.yaml index 01787a99..55b5a4be 100644 --- a/.github/workflows/on-pr.yaml +++ b/.github/workflows/on-pr.yaml @@ -6,6 +6,17 @@ on: permissions: contents: read +# Cancel stale runs so only the PR's current HEAD determines the +# check status. Matters specifically for PRs where the +# upstream-release-docs workflow pushes multiple commits +# in quick succession (skill output + prettier/eslint autofix): the +# intermediate commits briefly fail lint until the autofix lands, +# and without cancel-in-progress those intermediate failures stay +# in the check history. +concurrency: + group: on-pr-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: static-checks: name: Static checks