Skip to content

Commit facf5a0

Browse files
facontidavideclaude
andcommitted
Add concurrency to CI workflows to cancel in-progress jobs
When a new commit is pushed to a PR, any running jobs for that PR will be automatically canceled, reducing CI queue time and noise. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d6d1345 commit facf5a0

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

.github/workflows/cmake_ubuntu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types: [opened, synchronize, reopened]
99
workflow_dispatch:
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
env:
1216
BUILD_TYPE: Release
1317

.github/workflows/cmake_ubuntu_sanitizers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1216
BUILD_TYPE: Debug

.github/workflows/cmake_windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build:
1216
runs-on: ${{ matrix.os }}

.github/workflows/doxygen-gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
- master
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
deploy:
1115
runs-on: ubuntu-latest

.github/workflows/pixi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
pixi_conda_build:
1216
strategy:

.github/workflows/pre-commit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
pre-commit:
1216
runs-on: ubuntu-latest

.github/workflows/ros2-rolling.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
industrial_ci:
1216
strategy:

.github/workflows/ros2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
industrial_ci:
1216
strategy:

0 commit comments

Comments
 (0)