Skip to content

Commit 34c5ff3

Browse files
[CI] Use YAML anchors (#1953)
1 parent 9a8d110 commit 34c5ff3

16 files changed

+32
-243
lines changed

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,7 @@ name: Humble Binary Build
44

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- humble
10-
paths:
11-
- '**.hpp'
12-
- '**.h'
13-
- '**.cpp'
14-
- '**.py'
15-
- '**.yaml'
16-
- '.github/workflows/humble-binary-build.yml'
17-
- '**/package.xml'
18-
- '**/CMakeLists.txt'
19-
- 'ros2_controllers-not-released.humble.repos'
20-
- '**.xml'
21-
push:
7+
pull_request: &event
228
branches:
239
- humble
2410
paths:
@@ -32,6 +18,7 @@ on:
3218
- '**/CMakeLists.txt'
3319
- 'ros2_controllers-not-released.humble.repos'
3420
- '**.xml'
21+
push: *event
3522
schedule:
3623
# Run every morning to detect flakiness and broken dependencies
3724
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
name: Coverage Build - Humble
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- humble
7-
paths:
8-
- '**.hpp'
9-
- '**.h'
10-
- '**.cpp'
11-
- '**.py'
12-
- '**.yaml'
13-
- '.github/workflows/humble-coverage-build.yml'
14-
- 'codecov.yml'
15-
- '**/package.xml'
16-
- '**/CMakeLists.txt'
17-
- 'ros2_controllers.humble.repos'
18-
- '**.xml'
19-
pull_request:
4+
pull_request: &event
205
branches:
216
- humble
227
paths:
@@ -31,6 +16,7 @@ on:
3116
- '**/CMakeLists.txt'
3217
- 'ros2_controllers.humble.repos'
3318
- '**.xml'
19+
push: *event
3420

3521
concurrency:
3622
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,7 @@ name: Humble Semi-Binary Build
33

44
on:
55
workflow_dispatch:
6-
pull_request:
7-
branches:
8-
- humble
9-
paths:
10-
- '**.hpp'
11-
- '**.h'
12-
- '**.cpp'
13-
- '**.py'
14-
- '**.yaml'
15-
- '.github/workflows/humble-semi-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_controllers.humble.repos'
19-
- '**.xml'
20-
push:
6+
pull_request: &event
217
branches:
228
- humble
239
paths:
@@ -31,6 +17,7 @@ on:
3117
- '**/CMakeLists.txt'
3218
- 'ros2_controllers.humble.repos'
3319
- '**.xml'
20+
push: *event
3421
schedule:
3522
# Run every morning to detect flakiness and broken dependencies
3623
- cron: '33 1 * * MON-FRI'

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Jazzy Binary Build
44

55
on:
66
workflow_dispatch:
7-
pull_request:
7+
pull_request: &event
88
branches:
99
- jazzy
1010
- '*feature*'
@@ -20,19 +20,7 @@ on:
2020
- '**/CMakeLists.txt'
2121
- 'ros2_controllers-not-released.jazzy.repos'
2222
- '**.xml'
23-
push:
24-
branches:
25-
- jazzy
26-
paths:
27-
- '**.hpp'
28-
- '**.h'
29-
- '**.cpp'
30-
- '**.yaml'
31-
- '.github/workflows/jazzy-binary-build.yml'
32-
- '**/package.xml'
33-
- '**/CMakeLists.txt'
34-
- 'ros2_controllers-not-released.jazzy.repos'
35-
- '**.xml'
23+
push: *event
3624
schedule:
3725
# Run every morning to detect flakiness and broken dependencies
3826
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
name: Coverage Build - Jazzy
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- jazzy
7-
paths:
8-
- '**.hpp'
9-
- '**.h'
10-
- '**.cpp'
11-
- '.github/workflows/jazzy-coverage-build.yml'
12-
- '**.yaml'
13-
- '**/package.xml'
14-
- '**/CMakeLists.txt'
15-
- 'codecov.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_controllers.jazzy.repos'
19-
pull_request:
4+
pull_request: &event
205
branches:
216
- jazzy
227
paths:
@@ -31,6 +16,7 @@ on:
3116
- '**/package.xml'
3217
- '**/CMakeLists.txt'
3318
- 'ros2_controllers.jazzy.repos'
19+
push: *event
3420

3521
concurrency:
3622
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Jazzy Semi-Binary Build
33

44
on:
55
workflow_dispatch:
6-
pull_request:
6+
pull_request: &event
77
branches:
88
- jazzy
99
- '*feature*'
@@ -19,20 +19,7 @@ on:
1919
- '**/CMakeLists.txt'
2020
- 'ros2_controllers.jazzy.repos'
2121
- '**.xml'
22-
push:
23-
branches:
24-
- jazzy
25-
paths:
26-
- '**.hpp'
27-
- '**.h'
28-
- '**.cpp'
29-
- '**.py'
30-
- '**.yaml'
31-
- '.github/workflows/jazzy-semi-binary-build.yml'
32-
- '**/package.xml'
33-
- '**/CMakeLists.txt'
34-
- 'ros2_controllers.jazzy.repos'
35-
- '**.xml'
22+
push: *event
3623
schedule:
3724
# Run every morning to detect flakiness and broken dependencies
3825
- cron: '33 1 * * MON-FRI'

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Kilted Binary Build
44

55
on:
66
workflow_dispatch:
7-
pull_request:
7+
pull_request: &event
88
branches:
99
- kilted
1010
- '*feature*'
@@ -20,19 +20,7 @@ on:
2020
- '**/CMakeLists.txt'
2121
- 'ros2_controllers-not-released.kilted.repos'
2222
- '**.xml'
23-
push:
24-
branches:
25-
- kilted
26-
paths:
27-
- '**.hpp'
28-
- '**.h'
29-
- '**.cpp'
30-
- '**.yaml'
31-
- '.github/workflows/kilted-binary-build.yml'
32-
- '**/package.xml'
33-
- '**/CMakeLists.txt'
34-
- 'ros2_controllers-not-released.kilted.repos'
35-
- '**.xml'
23+
push: *event
3624
schedule:
3725
# Run every morning to detect flakiness and broken dependencies
3826
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
name: Coverage Build - Kilted
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- kilted
7-
paths:
8-
- '**.hpp'
9-
- '**.h'
10-
- '**.cpp'
11-
- '.github/workflows/kilted-coverage-build.yml'
12-
- '**.yaml'
13-
- '**/package.xml'
14-
- '**/CMakeLists.txt'
15-
- 'codecov.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_controllers.kilted.repos'
19-
pull_request:
4+
pull_request: &event
205
branches:
216
- kilted
227
paths:
@@ -31,6 +16,7 @@ on:
3116
- '**/package.xml'
3217
- '**/CMakeLists.txt'
3318
- 'ros2_controllers.kilted.repos'
19+
push: *event
3420

3521
concurrency:
3622
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Kilted Semi-Binary Build
33

44
on:
55
workflow_dispatch:
6-
pull_request:
6+
pull_request: &event
77
branches:
88
- kilted
99
- '*feature*'
@@ -19,20 +19,7 @@ on:
1919
- '**/CMakeLists.txt'
2020
- 'ros2_controllers.kilted.repos'
2121
- '**.xml'
22-
push:
23-
branches:
24-
- kilted
25-
paths:
26-
- '**.hpp'
27-
- '**.h'
28-
- '**.cpp'
29-
- '**.py'
30-
- '**.yaml'
31-
- '.github/workflows/kilted-semi-binary-build.yml'
32-
- '**/package.xml'
33-
- '**/CMakeLists.txt'
34-
- 'ros2_controllers.kilted.repos'
35-
- '**.xml'
22+
push: *event
3623
schedule:
3724
# Run every morning to detect flakiness and broken dependencies
3825
- cron: '33 1 * * MON-FRI'

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Rolling Binary Build
44

55
on:
66
workflow_dispatch:
7-
pull_request:
7+
pull_request: &event
88
branches:
99
- master
1010
- '*feature*'
@@ -21,21 +21,7 @@ on:
2121
- 'ros2_controllers-not-released.rolling.repos'
2222
- 'ros2_controllers-not-released.kilted.repos'
2323
- '**.xml'
24-
push:
25-
branches:
26-
- master
27-
paths:
28-
- '**.hpp'
29-
- '**.h'
30-
- '**.cpp'
31-
- '**.py'
32-
- '**.yaml'
33-
- '.github/workflows/rolling-binary-build.yml'
34-
- '**/package.xml'
35-
- '**/CMakeLists.txt'
36-
- 'ros2_controllers-not-released.rolling.repos'
37-
- 'ros2_controllers-not-released.kilted.repos'
38-
- '**.xml'
24+
push: *event
3925
schedule:
4026
# Run every morning to detect flakiness and broken dependencies
4127
- cron: '03 1 * * MON-FRI'

0 commit comments

Comments
 (0)