Cancel in-progress workflow runs after a push

This commit is contained in:
Jakub Beránek 2023-06-23 11:22:23 +02:00
parent fa06a371b7
commit 3c2b8b06fc
2 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,9 @@ permissions:
defaults:
run:
shell: bash
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
pr:
permissions:

View File

@ -305,6 +305,10 @@ defaults:
# shell is PowerShell.)
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pr:
permissions: