@@ -6,10 +6,29 @@ name: 🚀 Build & release
66 branches :
77 - main
88
9+ concurrency :
10+ # Declared on this push-triggered entry, not the reusable _release-engine.yaml it
11+ # calls: GitHub decides run cancellation from the entry workflow's group, and a
12+ # block on the engine lane (reached via `needs: build`) joins its group too late
13+ # to cancel queued or building runs. Regular commits share a per-branch group and
14+ # cancel each other; release commits ([changelog] Release / Post-release) get a
15+ # unique SHA-based group so an in-flight release is never cancelled by a later push.
16+ group : >-
17+ ${{ github.workflow }}-${{
18+ github.event.pull_request.number
19+ || (
20+ (startsWith(github.event.head_commit.message, '[changelog] Release')
21+ || startsWith(github.event.head_commit.message, '[changelog] Post-release'))
22+ && github.sha
23+ )
24+ || github.ref
25+ }}
26+ cancel-in-progress : true
27+
928jobs :
1029
1130 build :
12- uses : kdeldycke/repomatic/.github/workflows/_release-build.yaml@6b9586282b103feae63e773c15f788f7d37848bd # v6.29 .0
31+ uses : kdeldycke/repomatic/.github/workflows/_release-build.yaml@e8e1f6c651ed0c51dd6622cf316f3f7f591ed3dc # v6.30 .0
1332
1433 publish-pypi :
1534 name : 🐍 Publish to PyPI (${{ matrix.short_sha }})
3352 # Lets the admonition step below edit the published release notes.
3453 contents : write
3554 steps :
36- - uses : kdeldycke/repomatic/.github/actions/publish-pypi@6b9586282b103feae63e773c15f788f7d37848bd # v6.29 .0
55+ - uses : kdeldycke/repomatic/.github/actions/publish-pypi@e8e1f6c651ed0c51dd6622cf316f3f7f591ed3dc # v6.30 .0
3756 with :
3857 artifact-name : ${{ github.event.repository.name }}-${{ matrix.short_sha }}
3958 # Backfill the "available on PyPI" admonition onto the release notes after a successful OIDC upload. The engine
5170 --repo "${{ github.repository }}" <<< "${RELEASE_NOTES}"
5271
5372 release :
54- uses : kdeldycke/repomatic/.github/workflows/_release-engine.yaml@6b9586282b103feae63e773c15f788f7d37848bd # v6.29 .0
73+ uses : kdeldycke/repomatic/.github/workflows/_release-engine.yaml@e8e1f6c651ed0c51dd6622cf316f3f7f591ed3dc # v6.30 .0
5574 needs : build
5675 secrets :
5776 REPOMATIC_PAT : ${{ secrets.REPOMATIC_PAT }}
0 commit comments