Skip to content

Commit

Permalink
ci: Update workflows to cancel previous runs unless the branch is the…
Browse files Browse the repository at this point in the history
… main branch.
  • Loading branch information
nfelt14 committed Oct 21, 2023
1 parent 173b73f commit 384b654
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [main]
pull_request:
branches: [main]
# Cancel running jobs for the same workflow and branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# IMPORTANT: Any new jobs need to be added to the check-tests-passed job to ensure they correctly gate code changes
jobs:
# Basic testing & linting
Expand Down

0 comments on commit 384b654

Please sign in to comment.