Skip to content

Commit 585c82a

Browse files
ci: add concurrency groups to scheduled/update workflows (#3551)
Fixes #3547 Without a concurrency group, a new scheduled run starts even if the previous one is still in progress, wasting runner minutes. Follows the pattern from #3536 which added concurrency to functions.yaml.
1 parent 598ca2c commit 585c82a

6 files changed

Lines changed: 24 additions & 0 deletions

.github/workflows/test-podman-next.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
schedule:
88
- cron: '0 2 * * *'
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
test:
1216
name: Podman Next Test

.github/workflows/update-builder.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- cron: '0 * * * *'
66
workflow_dispatch:
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
build-and-push-image:
1014
permissions:

.github/workflows/update-ca-bundle.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- cron: '0 */4 * * *'
1010
workflow_dispatch:
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
update:
1418
name: Update CA bundle

.github/workflows/update-python-platform.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- cron: "0 6 * * *" # Daily at 06:00.
1010
workflow_dispatch: # Manual workflow trigger
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
update:
1418
name: Update func-python version

.github/workflows/update-quarkus-platform.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- cron: '0 */4 * * *'
1010
workflow_dispatch:
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
update:
1418
name: Update Quarkus Platform

.github/workflows/update-springboot-platform.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- cron: '0 */4 * * *'
1010
workflow_dispatch:
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
update:
1418
name: Update Spring Boot Platform

0 commit comments

Comments
 (0)