Skip to content

Commit ecf8a96

Browse files
ci: add concurrency settings to cancel redundant workflow runs
Adds a concurrency block to kind-e2e.yaml and knative-downstream.yaml so that pushing a new commit to a PR cancels any in-progress run for the same ref, avoiding wasted runner minutes on the expensive 3-suite × 2-k8s-version e2e matrix.
1 parent 7c4c338 commit ecf8a96

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/kind-e2e.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ defaults:
88
run:
99
shell: bash
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216

1317
e2e-tests:

.github/workflows/knative-downstream.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
pull_request:
1919
branches: [ 'main', 'master' ]
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226

2327
downstream-knative:

0 commit comments

Comments
 (0)