CI: Automatically cancel non-generated workflows

Specify concurrency groups for non-generated workflows so we can cancel in-progress runs when new commits are pushed to a PR.
This commit is contained in:
Henry Mercer
2026-05-20 16:39:16 +01:00
parent f4d0a7abf7
commit 8ffeae7d05
8 changed files with 33 additions and 0 deletions
+4
View File
@@ -14,6 +14,10 @@ on:
- cron: '0 0 * * 1'
workflow_dispatch:
concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
shell: bash