CI: Cancel previous runs for pull requests automatically (#4512)

This commit is contained in:
Anthony Donlon 2023-09-23 23:50:05 +08:00 committed by GitHub
parent 429cb1f7f7
commit d64c023099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,10 @@ defaults:
shell: bash
working-directory: repo
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build:

View File

@ -22,6 +22,10 @@ defaults:
run:
working-directory: repo
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
windows: