mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 14:03:11 +00:00
fix(ci): disambiguate concurrency groups across sibling reusable-CI callers
The group key ci-${{ github.workflow }}-${{ github.ref }} resolves
identically for every job in a caller workflow (github.workflow is the
caller's name in a reusable workflow), so repos calling two reusable CI
workflows from one ci.yaml (e.g. exec-aide python + typescript) had
their jobs cancel each other on every run.
Prefix each group with the reusable workflow's own filename and append
its distinguishing input (source-dirs / working-directory) so sibling
jobs get distinct groups while superseded runs of the same job still
cancel.
This commit is contained in:
parent
1cc7236ef6
commit
d1e7f2ce6f
3 changed files with 3 additions and 3 deletions
2
.github/workflows/ci-dotnet.yaml
vendored
2
.github/workflows/ci-dotnet.yaml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
concurrency:
|
||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||
group: ci-dotnet-${{ github.workflow }}-${{ github.ref }}-${{ inputs.working-directory }}
|
||||
cancel-in-progress: true
|
||||
defaults:
|
||||
run:
|
||||
|
|
|
|||
2
.github/workflows/ci-python-sam.yaml
vendored
2
.github/workflows/ci-python-sam.yaml
vendored
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
concurrency:
|
||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||
group: ci-python-sam-${{ github.workflow }}-${{ github.ref }}-${{ inputs.source-dirs }}
|
||||
cancel-in-progress: true
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
|
|
|||
2
.github/workflows/ci-typescript-cdk.yaml
vendored
2
.github/workflows/ci-typescript-cdk.yaml
vendored
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
concurrency:
|
||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||
group: ci-typescript-cdk-${{ github.workflow }}-${{ github.ref }}-${{ inputs.working-directory }}
|
||||
cancel-in-progress: true
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue