Merge pull request #16786 from jamessan/cancel-previous-ci

ci: cancel in-progress CI if a PR is updated
This commit is contained in:
James McCoy 2021-12-25 12:03:01 -05:00 committed by GitHub
commit 9e93e5c0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,11 @@ on:
- 'master'
- 'release-[0-9]+.[0-9]+'
# Cancel any in-progress CI runs for a PR if it is updated
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
unixish:
name: ${{ matrix.runner }} ${{ matrix.flavor }} (cc=${{ matrix.cc }})