Skip to content

Commit fceb8cd

Browse files
authored
Fix github.ref check for concurrency settings (#453) (#454)
1 parent 13356b3 commit fceb8cd

32 files changed

+135
-4
lines changed

.github/workflows/humble-abi-compatibility.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- humble
77

8+
concurrency:
9+
# cancel previous runs of the same workflow, except for pushes on given branches branch
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
12+
813
jobs:
914
abi_check:
1015
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-abi-check.yml@master

.github/workflows/humble-binary-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
# Run every day to detect flakiness and broken dependencies
1414
- cron: '28 6 * * MON-FRI'
1515

16+
concurrency:
17+
# cancel previous runs of the same workflow, except for pushes on given branches branch
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
1620

1721
jobs:
1822
binary:

.github/workflows/humble-build-coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- humble
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on given branches branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
15+
1116
jobs:
1217
coverage_humble:
1318
name: coverage build - humble

.github/workflows/humble-build-downstream.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
branches:
1111
- humble
1212

13+
concurrency:
14+
# cancel previous runs of the same workflow, except for pushes on given branches branch
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
1317

1418
jobs:
1519
build-downstream:

.github/workflows/humble-build-source.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '03 3 * * MON-FRI'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on given branches branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
15+
1116
jobs:
1217
source_build:
1318
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-source-build.yml@master

.github/workflows/humble-ci-pre-commit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
branches:
1010
- humble
1111

12+
concurrency:
13+
# cancel previous runs of the same workflow, except for pushes on given branches branch
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
16+
1217
jobs:
1318
pre-commit:
1419
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master

.github/workflows/humble-debian-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '03 5 * * MON-FRI'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on given branches branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
1115

1216
jobs:
1317
debian_semi_binary_build:

.github/workflows/humble-rhel-semi-binary-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '03 3 * * MON-FRI'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on given branches branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
1115

1216
jobs:
1317
rhel_semi_binary_build:

.github/workflows/humble-semi-binary-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
# Run every day to detect flakiness and broken dependencies
1414
- cron: '28 6 * * MON-FRI'
1515

16+
concurrency:
17+
# cancel previous runs of the same workflow, except for pushes on given branches branch
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
1620

1721
jobs:
1822
semi-binary:

.github/workflows/jazzy-abi-compatibility.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- jazzy
77

8+
concurrency:
9+
# cancel previous runs of the same workflow, except for pushes on given branches branch
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
12+
813
jobs:
914
abi_check:
1015
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-abi-check.yml@master

0 commit comments

Comments
 (0)