misc: Fix CI GitHub Action to stop if Workflow re-triggered (#275)
This ensures that if the CI tests are running for a PR, and a new workflow is triggered (typically by pushing/rebasing the PR) then the older workflow is cancelled.
This commit is contained in:
3
.github/workflows/ci-tests.yaml
vendored
3
.github/workflows/ci-tests.yaml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
pull_request:
|
||||
types: [opened, edited, synchronize, ready_for_review]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
|
||||
Reference in New Issue
Block a user