Skip to content

Commit

Permalink
[CI]: Add Concurrency Grouping to GitHub Workflows (prometheus#1444)
Browse files Browse the repository at this point in the history
* 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]>
Signed-off-by: Steven Swartz <[email protected]>
  • Loading branch information
Ishani217 authored and Steven Swartz committed Jun 29, 2024
1 parent 6abb413 commit 32e1ef8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/automerge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Dependabot auto-merge
on: pull_request

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
schedule:
- cron: '31 21 * * 6'

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true

# Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions:
contents: read
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- main
- "release-*"

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true

# Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions:
contents: read
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- ".golangci.yml"
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true

permissions: # added using https://github.com/step-security/secure-repo
contents: read

Expand Down

0 comments on commit 32e1ef8

Please sign in to comment.