Restrict cancel workflow (#330)

This commit is contained in:
Oliver Wipfli
2022-06-16 00:14:06 +02:00
committed by GitHub
parent 60c748756a
commit 03dc955683
7 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:

View File

@@ -16,7 +16,7 @@ jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:

View File

@@ -25,7 +25,7 @@ jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
BUILDTYPE: Debug

View File

@@ -27,7 +27,7 @@ jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
BUILDTYPE: Debug

View File

@@ -31,7 +31,7 @@ jobs:
- ubuntu-18.04
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
BUILDTYPE: ${{github.ref == 'refs/heads/main' && 'Release' || 'Debug'}}

View File

@@ -29,7 +29,7 @@ jobs:
build-core:
runs-on: windows-latest
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
strategy:
matrix:

View File

@@ -55,7 +55,7 @@ jobs:
qt_target: desktop
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
BUILD_TYPE: Debug