ci: add concurrency flag for CI workflows (#448)

This commit is contained in:
Marco Pasqualetti
2025-01-28 08:30:33 +01:00
committed by GitHub
parent c0aa707315
commit bd34c194cb
7 changed files with 24 additions and 0 deletions
+4
View File
@@ -9,6 +9,10 @@ on:
- 'main'
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build_and_test:
name: Build and Test Docker Image on ${{ matrix.os }}
@@ -20,6 +20,10 @@ on:
- '!Cargo.toml'
- 'apps/documentation/**'
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
name: Check build
+4
View File
@@ -10,6 +10,10 @@ on:
- 'main'
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
format:
name: Check format
@@ -6,6 +6,10 @@ on:
- 'main'
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
+4
View File
@@ -7,6 +7,10 @@ on:
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
spell_checking:
name: LanguageTool
@@ -6,6 +6,10 @@ on:
- 'main'
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build_and_test:
name: Check build and test