[CI]: Add Concurrency Grouping to GitHub Workflows (#1444)
* Update automerge-dependabot.yml Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com> * Update codeql-analysis.yml Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com> * Update go.yml Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com> * Update golangci-lint.yml Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com> --------- Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com>
This commit is contained in:
parent
9308329e89
commit
7d3be80a44
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue