github: cancel concurrent workflows for the same PR/push

This commit is contained in:
yyforyongyu
2022-08-18 03:29:32 +08:00
parent 909ba573ea
commit 71eb5804b6

View File

@@ -8,6 +8,11 @@ on:
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:
run:
shell: bash