Merge pull request #6838 from yyforyongyu/cancel-workflow

github: cancel concurrent workflows for the same PR/push
This commit is contained in:
Oliver Gugger 2022-08-18 09:57:14 +02:00 committed by GitHub
commit e0969f2f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,11 @@ on:
branches: branches:
- "*" - "*"
concurrency:
# Cancel any previous workflows if they are from a PR or push.
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults: defaults:
run: run:
shell: bash shell: bash