ci: cancel in progress runs on pull requests only (#11842)

This commit is contained in:
Piotr Galar 2024-04-05 17:45:04 +01:00 committed by GitHub
parent 83421e2742
commit 8163e6a91e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 11 deletions

View File

@ -14,7 +14,7 @@ defaults:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}

View File

@ -14,7 +14,7 @@ defaults:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}

View File

@ -15,10 +15,6 @@ defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:

View File

@ -13,10 +13,6 @@ defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:

View File

@ -14,7 +14,7 @@ defaults:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}