Skip to content

Commit 5e91b29

Browse files
authored
Add concurrency limit for GitHub Actions and all use .yml file extension (grafana/phlare#571)
1 parent ac20b94 commit 5e91b29

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- r[0-9]+ # Trigger builds after a push to weekly branches
77
pull_request:
88

9+
concurrency:
10+
# Cancel any running workflow for the same branch when new commits are pushed.
11+
# We group both by ref_name (available when CI is triggered by a push to a branch/tag)
12+
# and head_ref (available when CI is triggered by a PR).
13+
group: "${{ github.ref_name }}-${{ github.head_ref }}"
14+
cancel-in-progress: true
15+
916
jobs:
1017
test:
1118
strategy:

0 commit comments

Comments
 (0)