add cancel in progress for CI

This commit is contained in:
Ferdinand Schober
2026-03-25 12:44:59 +01:00
parent 810e25a7fc
commit 9540739d89
2 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ on:
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
nix:
strategy:

View File

@@ -9,6 +9,10 @@ on:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
fmt:
name: Formatting