add cancel-in-progress to all workflows

This commit is contained in:
Yves Delley
2024-11-12 19:05:04 +01:00
parent e464677200
commit cc9ea9dd1a
4 changed files with 17 additions and 0 deletions

View File

@ -24,6 +24,10 @@ name: Formatting CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-24.04

View File

@ -5,6 +5,10 @@ on:
paths:
- CITATION.cff
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Validate-CITATION-cff:
runs-on: ubuntu-latest

View File

@ -22,6 +22,10 @@ on:
paths-ignore:
- "docs/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze

View File

@ -36,6 +36,11 @@ on:
- "mkdocs.yml"
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest