Skip to content

Commit

Permalink
kill older jobs when adding new commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ntwilson committed May 4, 2024
1 parent ba0c89f commit 5c01359
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
branches:
- main

# Kill other jobs when we trigger this workflow by sending new commits
# to the PR.
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5c01359

Please sign in to comment.