Skip to content

Commit 8edd459

Browse files
committed
cancel in progress workflow when there is a new push
1 parent 38320e6 commit 8edd459

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010

1111
permissions: read-all
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
16+
1317
jobs:
1418
run:
1519
runs-on: ubuntu-latest

.github/workflows/e2e.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ permissions:
66
contents: read
77
id-token: write
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
913
jobs:
1014
resolve-versions:
1115
name: Resolve Grafana images

0 commit comments

Comments
 (0)