concurrency group

This commit is contained in:
tooomm 2026-08-22 14:34:15 +02:00
parent 7f56e9be3d
commit 6790f5fed8
3 changed files with 11 additions and 1 deletions

View file

@ -26,6 +26,11 @@ on:
- '**/*.md' - '**/*.md'
- 'doc/**' - 'doc/**'
# Cancel earlier, unfinished runs of this workflow on the same branch
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
cancel-in-progress: true
jobs: jobs:
analyze: analyze:
name: Analyze (${{ matrix.language }}) name: Analyze (${{ matrix.language }})

View file

@ -34,7 +34,7 @@ on:
- 'vcpkg.json' - 'vcpkg.json'
- 'vcpkg' - 'vcpkg'
# Cancel earlier, unfinished runs of this workflow on the same branch (unless on release) # Cancel earlier, unfinished runs of this workflow on the same branch (unless on tag --> release)
concurrency: concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}" group: "${{ github.workflow }} @ ${{ github.ref_name }}"
cancel-in-progress: ${{ github.ref_type != 'tag' }} cancel-in-progress: ${{ github.ref_type != 'tag' }}

View file

@ -11,6 +11,11 @@ on:
- 'Doxyfile' - 'Doxyfile'
workflow_dispatch: workflow_dispatch:
# Cancel earlier, unfinished runs of this workflow on the same branch (unless on release)
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
cancel-in-progress: ${{ github.event_name != 'release' }}
env: env:
COCKATRICE_REF: ${{ github.ref_name }} # Tag name if the commit is tagged, otherwise branch name COCKATRICE_REF: ${{ github.ref_name }} # Tag name if the commit is tagged, otherwise branch name