Skip to content

Commit 938b403

Browse files
committed
concurrency and cancel in progress pushes
1 parent ed6e27f commit 938b403

6 files changed

Lines changed: 33 additions & 4 deletions

File tree

.github/workflows/checks.yml

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

13+
# This ensures any in-progress workflows in the same branch or PR
14+
# are cancelled if there is a fresh push.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: true
18+
1319
permissions: {} # workflow-level default — deny all
1420

1521
jobs:

.github/workflows/glean-probe-scraper.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
branches: [master]
66
pull_request:
77
branches: [master]
8+
89
permissions: {} # workflow-level default — deny all
910

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
13+
cancel-in-progress: true
14+
1015
jobs:
1116
glean-probe-scraper:
1217
permissions:

.github/workflows/mysql.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
- "**"
1111
workflow_dispatch: {}
1212

13+
# This ensures any in-progress workflows in the same branch or PR
14+
# are cancelled if there is a fresh push.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: true
18+
1319
env:
1420
RUST_VERSION: "1.91" # RUST_VER
1521
PYTHON_VERSION: "3.12" # PY_VER

.github/workflows/postgres.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
- "**"
1111
workflow_dispatch: {}
1212

13+
# This ensures any in-progress workflows in the same branch or PR
14+
# are cancelled if there is a fresh push.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: true
18+
1319
env:
1420
RUST_VERSION: "1.91"
1521
PYTHON_VERSION: "3.12"
@@ -251,4 +257,3 @@ jobs:
251257
glob: "*.xml"
252258
parent: false
253259
process_gcloudignore: false
254-

.github/workflows/publish-docs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ on:
66
branches: [master, main]
77
# paths: ['docs/**.md'] # API docs need building always
88

9+
# This ensures any in-progress workflows in the same branch or PR
10+
# are cancelled if there is a fresh push.
911
concurrency:
10-
group: github-pages
11-
cancel-in-progress: false # Skip any intermediate builds but finish deploying
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
13+
cancel-in-progress: true # Skip any intermediate builds but finish deploying
1214

1315
jobs:
1416
build-mdbook:

.github/workflows/spanner.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
- "**"
1111
workflow_dispatch: {}
1212

13+
# This ensures any in-progress workflows in the same branch or PR
14+
# are cancelled if there is a fresh push.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: true
18+
1319
env:
1420
RUST_VERSION: "1.91" # RUST_VER
1521
PYTHON_VERSION: "3.12" # PY_VER
@@ -278,4 +284,3 @@ jobs:
278284
glob: "*.xml"
279285
parent: false
280286
process_gcloudignore: false
281-

0 commit comments

Comments
 (0)