Skip to content

Commit

Permalink
chore(ci) add concurrency control for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored and curiositycasualty committed Nov 27, 2023
1 parent 81c703e commit 2f43cfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-large.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ defaults:
run:
shell: bash

# cancel previous runs if new commits are pushed to the PR, but run for each commit on master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
unit-large:
name: 'Unit'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ defaults:
run:
shell: bash

# cancel previous runs if new commits are pushed to the PR, but run for each commit on master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
unit:
name: 'Unit'
Expand Down

0 comments on commit 2f43cfc

Please sign in to comment.