Skip to content

Commit 57ea855

Browse files
ci: add timeout, concurrency, and workflow_dispatch to scheduled workflows
Fixes knative#3546 - add timeout-minutes to all scheduled/update workflow jobs Fixes knative#3547 - add concurrency groups to prevent redundant parallel runs Fixes knative#3548 - add workflow_dispatch trigger to update workflows missing it Follows patterns established in knative#3535, knative#3536, and knative#3532 for functions.yaml.
1 parent e92b074 commit 57ea855

6 files changed

Lines changed: 34 additions & 0 deletions

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ 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
1317
runs-on: ubuntu-latest
18+
timeout-minutes: 60
1419
steps:
1520
- name: Remove Unnecessary Software
1621
run: |

.github/workflows/update-builder.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ name: Update builder-jammy-full image
33
on:
44
schedule:
55
- cron: '0 * * * *'
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
611

712
jobs:
813
build-and-push-image:
914
permissions:
1015
contents: read
1116
packages: write
1217
runs-on: "ubuntu-latest"
18+
timeout-minutes: 30
1319
steps:
1420
- uses: actions/checkout@v4
1521
- uses: knative/actions/setup-go@main

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ permissions:
77
on:
88
schedule:
99
- cron: '0 */4 * * *'
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1015

1116
jobs:
1217
update:
1318
name: Update CA bundle
1419
runs-on: ubuntu-latest
20+
timeout-minutes: 15
1521
steps:
1622
- uses: actions/checkout@v4
1723
- uses: actions/setup-node@v4

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ 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
1519
runs-on: ubuntu-latest
20+
timeout-minutes: 30
1621
steps:
1722
- uses: actions/checkout@v4
1823

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ permissions:
77
on:
88
schedule:
99
- cron: '0 */4 * * *'
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1015

1116
jobs:
1217
update:
1318
name: Update Quarkus Platform
1419
runs-on: ubuntu-latest
20+
timeout-minutes: 30
1521
steps:
1622
- uses: actions/checkout@v4
1723
- uses: knative/actions/setup-go@main

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ permissions:
77
on:
88
schedule:
99
- cron: '0 */4 * * *'
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1015

1116
jobs:
1217
update:
1318
name: Update Spring Boot Platform
1419
runs-on: ubuntu-latest
20+
timeout-minutes: 30
1521
steps:
1622
- uses: actions/checkout@v4
1723
- uses: knative/actions/setup-go@main

0 commit comments

Comments
 (0)