Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ on:
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
# On main each run is that commit's verification record, so it gets a run-unique
# group and nothing there queues behind or evicts anything else. Disabling
# cancellation alone would not be enough: a concurrency group holds one running
# plus one pending run, and a third push cancels the pending one, so a second
# push's checks would still be lost. A cancelled check is not a failed check, so
# main would report green over verification that never completed.
#
# Pull requests keep the ref-keyed group, so superseded runs there still cancel.
group: "${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

permissions: {}

Expand Down
Loading