Skip to content

Commit 7d3be80

Browse files
authored
[CI]: Add Concurrency Grouping to GitHub Workflows (prometheus#1444)
* Update automerge-dependabot.yml Signed-off-by: Ishani Goyal <[email protected]> * Update codeql-analysis.yml Signed-off-by: Ishani Goyal <[email protected]> * Update go.yml Signed-off-by: Ishani Goyal <[email protected]> * Update golangci-lint.yml Signed-off-by: Ishani Goyal <[email protected]> --------- Signed-off-by: Ishani Goyal <[email protected]>
1 parent 9308329 commit 7d3be80

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/automerge-dependabot.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Dependabot auto-merge
22
on: pull_request
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
6+
cancel-in-progress: true
7+
48
permissions:
59
contents: write
610
pull-requests: write

.github/workflows/codeql-analysis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020
schedule:
2121
- cron: '31 21 * * 6'
2222

23+
concurrency:
24+
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
25+
cancel-in-progress: true
26+
2327
# Minimal permissions to be inherited by any job that don't declare it's own permissions
2428
permissions:
2529
contents: read

.github/workflows/go.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- main
88
- "release-*"
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
# Minimal permissions to be inherited by any job that don't declare it's own permissions
1115
permissions:
1216
contents: read

.github/workflows/golangci-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- ".golangci.yml"
1313
pull_request:
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
17+
cancel-in-progress: true
18+
1519
permissions: # added using https://github.com/step-security/secure-repo
1620
contents: read
1721

0 commit comments

Comments
 (0)