Skip to content

Commit 693b455

Browse files
committed
ci: limit concurrency to 1 run per workflow-ref
Before, old CI runs would continue running if a branch was pushed again. This is super wasteful of CI resources. We automatically cancel old CI runs when a new run is triggered.
1 parent 286fe01 commit 693b455

10 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/anaconda.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
linux:

.github/workflows/external-zstd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
linux:

.github/workflows/pypy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
wheel:

.github/workflows/ruff.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
ruff:

.github/workflows/sdist.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
sdist:

.github/workflows/sphinx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
sphinx:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
test:

.github/workflows/typing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
mypy:

.github/workflows/wheel.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
schedule:
77
- cron: '30 13 * * *'
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions: { }
912
jobs:
1013
linux:

.github/workflows/zizmor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ "**" ]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
permissions: { }
1014

1115
jobs:

0 commit comments

Comments
 (0)