Skip to content

Commit d527aae

Browse files
ci: add concurrency-cancellation groups to workflows (#452)
Co-authored-by: Quō <noreply@facioquo.com>
1 parent f371d86 commit d527aae

6 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9+
cancel-in-progress: true
10+
711
permissions:
812
contents: read
913

.github/workflows/deploy-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
tags:
1010
- '[0-9]+.[0-9]+.[0-9]+'
1111

12+
# Deploy/publish workflow: do not cancel an in-flight release mid-run;
13+
# the group key still coalesces duplicate triggers, but running deploys finish.
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
16+
cancel-in-progress: false
17+
1218
jobs:
1319

1420
# production build

.github/workflows/test-indicators-full.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- .github/workflows/test-indicators-full.yml
1212
workflow_dispatch:
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
16+
cancel-in-progress: true
17+
1418
permissions:
1519
contents: read
1620

.github/workflows/test-indicators.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches: ["main"]
99
workflow_dispatch:
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
13+
cancel-in-progress: true
14+
1115
permissions:
1216
contents: read
1317

.github/workflows/test-localization.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
branches: ["*"]
1111
workflow_dispatch:
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
15+
cancel-in-progress: true
16+
1317
permissions:
1418
contents: read
1519

.github/workflows/test-performance.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- .github/workflows/test-performance.yml
1212
workflow_dispatch:
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
16+
cancel-in-progress: true
17+
1418
permissions:
1519
contents: read
1620

0 commit comments

Comments
 (0)