Skip to content

Commit

Permalink
Auto-cancel outdated PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Jul 16, 2022
1 parent eed37f6 commit b1f7a7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
branches: [ master ]
workflow_dispatch:

# Cancel in-progress PR builds if another commit is pushed.
# On non-PR builds, fall back to the globally-unique run_id and don't cancel.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

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

0 comments on commit b1f7a7c

Please sign in to comment.