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: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {} permissions: {}

View File

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

View File

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

View File

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

View File

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