Skip to content

Commit da9403f

Browse files
luisleo526claude
andauthored
ci: cancel only superseded pull-request runs of the docs workflow (#444)
The docs workflow grouped every run by github.ref with cancel-in-progress true, so a newer push to main, a tag push or a manual dispatch cancelled the older run (the docs build and deploy). The group is now one per pull request, with the run id for every other event, and cancellation applies to pull_request only, the same expression ci.yml, corpus-parity.yml and native-live.yml already use. No job, name, permission, trigger or check changes. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
1 parent 7bd065c commit da9403f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ permissions:
2222
deployments: write
2323

2424
concurrency:
25-
group: docs-${{ github.ref }}
26-
cancel-in-progress: true
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2727

2828
jobs:
2929
build:

0 commit comments

Comments
 (0)