Skip to content

Commit

Permalink
Add concurrency groups based on commit SHA
Browse files Browse the repository at this point in the history
This is intended to avoid duplicate runs of Quick Checks when a new push is sent to a branch with an open PR.
  • Loading branch information
SarahFrench committed Feb 3, 2025
1 parent 0cc2a18 commit f446ea2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/checks-merge-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.sha }}
cancel-in-progress: true

jobs:
quick-checks:
uses: ./.github/workflows/checks.yml
4 changes: 4 additions & 0 deletions .github/workflows/checks-merge-protected-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.sha }}
cancel-in-progress: true

jobs:
quick-checks:
uses: ./.github/workflows/checks.yml
4 changes: 4 additions & 0 deletions .github/workflows/checks-pr-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.sha }}
cancel-in-progress: true

jobs:
quick-checks:
uses: ./.github/workflows/checks.yml

0 comments on commit f446ea2

Please sign in to comment.