Skip to content

Commit 5491706

Browse files
committed
feat(ci): cancel in-progress PR workflows on new commit push
1 parent efaf6cf commit 5491706

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
- master
88

99
# This workflow triggers a release when merging a branch with the pattern `prepare-release/VERSION` into master.
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
1015
permissions:
1116
contents: write
1217
pull-requests: write

.github/workflows/cleanup-pr-caches.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
types:
55
- closed
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
711
jobs:
812
cleanup:
913
runs-on: ubuntu-latest

.github/workflows/enforce-license-compliance.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- v9
1616
- v8
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
enforce-license-compliance:
2024
runs-on: ubuntu-24.04

.github/workflows/gitflow-merge-conflict.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- develop
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
check-merge-conflicts:
1115
name: Detect merge conflicts in gitflow PRs

0 commit comments

Comments
 (0)