Skip to content

Commit

Permalink
[enhancement] reduce Github Actions runner loading by setting concurr…
Browse files Browse the repository at this point in the history
…encies (#2931)

* Update docker-validation-ci.yml

* Update docker-validation-nightly.yml

* Update label-enforcement.yml

* Update pr-checklist.yml

* Update renovate-validation.yml
  • Loading branch information
icfaust authored Oct 2, 2024
1 parent 3fb542f commit 197fda6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-validation-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
validate:
name: Docker validation
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker-validation-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
validate:
name: Docker validation
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/label-enforcement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
label_checker:
name: Please include labels on your pull request
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
pull_request:
types: [opened, edited, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
checklist:
name: Close all checkboxes before moving from draft
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/renovate-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
validate:
name: Renovate validation
Expand Down

0 comments on commit 197fda6

Please sign in to comment.