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

This commit is contained in:
Anthony Donlon
2023-09-23 11:50:05 -04:00
committed by GitHub
parent 429cb1f7f7
commit d64c023099
2 changed files with 8 additions and 0 deletions
+4
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:
+4
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: