fix(ci): give tag runs their own concurrency group
A tag run and the main run of the same commit shared the group keyed by the commit SHA, so one could wait on the other. Tag runs are now keyed by their ref. Cancellation stays limited to pull requests. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
705b370e23
commit
3b19cfd65e
3 files changed
+9
-5
No files matched your search
@@ -19,9 +19,10 @@ permissions:
|
||||
contents: read
|
||||
|
||||
# A newer push to the same pull request cancels the running run; a push to main or a tag
|
||||
# never cancels another run.
|
||||
# never cancels another run. A tag run has its own group, so it never shares one with the
|
||||
# main run of the same commit.
|
||||
concurrency:
|
||||
group: build-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
|
||||
group: build-${{ github.event_name == 'pull_request' && github.ref || (github.ref_type == 'tag' && github.ref || github.sha) }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
|
||||
Reference in new issue
Block a user