Skip to content

Commit 80b64c7

Browse files
authored
[CI] Use YAML anchors (#2617) (#2621)
1 parent 4266101 commit 80b64c7

16 files changed

Lines changed: 32 additions & 215 deletions

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +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-
- '.github/workflows/humble-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control-not-released.humble.repos'
19-
push:
7+
pull_request: &event
208
branches:
219
- humble
2210
paths:
@@ -28,6 +16,7 @@ on:
2816
- '**/package.xml'
2917
- '**/CMakeLists.txt'
3018
- 'ros2_control-not-released.humble.repos'
19+
push: *event
3120
schedule:
3221
# Run every morning to detect flakiness and broken dependencies
3322
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +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-
- '.github/workflows/humble-coverage-build.yml'
13-
- '**/package.xml'
14-
- '**/CMakeLists.txt'
15-
- 'ros2_control.humble.repos'
16-
- 'codecov.yml'
17-
pull_request:
4+
pull_request: &event
185
branches:
196
- humble
207
paths:
@@ -27,6 +14,7 @@ on:
2714
- '**/CMakeLists.txt'
2815
- 'ros2_control.humble.repos'
2916
- 'codecov.yml'
17+
push: *event
3018

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

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@ name: Humble Semi-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-
- '.github/workflows/humble-semi-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control.humble.repos'
19-
push:
7+
pull_request: &event
208
branches:
219
- humble
2210
paths:
@@ -28,6 +16,7 @@ on:
2816
- '**/package.xml'
2917
- '**/CMakeLists.txt'
3018
- 'ros2_control.humble.repos'
19+
push: *event
3120
schedule:
3221
# Run every morning to detect flakiness and broken dependencies
3322
- cron: '03 1 * * MON-FRI'

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

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

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- jazzy
10-
paths:
11-
- '**.hpp'
12-
- '**.h'
13-
- '**.cpp'
14-
- '**.py'
15-
- '.github/workflows/jazzy-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control-not-released.jazzy.repos'
19-
push:
7+
pull_request: &event
208
branches:
219
- jazzy
2210
paths:
@@ -28,6 +16,7 @@ on:
2816
- '**/package.xml'
2917
- '**/CMakeLists.txt'
3018
- 'ros2_control-not-released.jazzy.repos'
19+
push: *event
3120
schedule:
3221
# Run every morning to detect flakiness and broken dependencies
3322
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +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-
- '**/package.xml'
13-
- '**/CMakeLists.txt'
14-
- 'ros2_control.jazzy.repos'
15-
- 'codecov.yml'
16-
pull_request:
4+
pull_request: &event
175
branches:
186
- jazzy
197
paths:
@@ -25,6 +13,7 @@ on:
2513
- '**/CMakeLists.txt'
2614
- 'ros2_control.jazzy.repos'
2715
- 'codecov.yml'
16+
push: *event
2817

2918
jobs:
3019
coverage_jazzy:

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

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

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- jazzy
10-
paths:
11-
- '**.hpp'
12-
- '**.h'
13-
- '**.cpp'
14-
- '**.py'
15-
- '.github/workflows/jazzy-semi-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control.jazzy.repos'
19-
push:
7+
pull_request: &event
208
branches:
219
- jazzy
2210
paths:
@@ -28,6 +16,7 @@ on:
2816
- '**/package.xml'
2917
- '**/CMakeLists.txt'
3018
- 'ros2_control.jazzy.repos'
19+
push: *event
3120
schedule:
3221
# Run every morning to detect flakiness and broken dependencies
3322
- cron: '03 1 * * MON-FRI'

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

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

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- kilted
10-
paths:
11-
- '**.hpp'
12-
- '**.h'
13-
- '**.cpp'
14-
- '**.py'
15-
- '.github/workflows/kilted-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control-not-released.kilted.repos'
19-
push:
7+
pull_request: &event
208
branches:
219
- kilted
2210
paths:
@@ -28,6 +16,7 @@ on:
2816
- '**/package.xml'
2917
- '**/CMakeLists.txt'
3018
- 'ros2_control-not-released.kilted.repos'
19+
push: *event
3120
schedule:
3221
# Run every morning to detect flakiness and broken dependencies
3322
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +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-
- '**/package.xml'
13-
- '**/CMakeLists.txt'
14-
- 'ros2_control.kilted.repos'
15-
- 'codecov.yml'
16-
pull_request:
4+
pull_request: &event
175
branches:
186
- kilted
197
paths:
@@ -25,6 +13,7 @@ on:
2513
- '**/CMakeLists.txt'
2614
- 'ros2_control.kilted.repos'
2715
- 'codecov.yml'
16+
push: *event
2817

2918
jobs:
3019
coverage_kilted:

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

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

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- kilted
10-
paths:
11-
- '**.hpp'
12-
- '**.h'
13-
- '**.cpp'
14-
- '**.py'
15-
- '.github/workflows/kilted-semi-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control.kilted.repos'
19-
push:
7+
pull_request: &event
208
branches:
219
- kilted
2210
paths:
@@ -28,6 +16,7 @@ on:
2816
- '**/package.xml'
2917
- '**/CMakeLists.txt'
3018
- 'ros2_control.kilted.repos'
19+
push: *event
3120
schedule:
3221
# Run every morning to detect flakiness and broken dependencies
3322
- cron: '03 1 * * MON-FRI'

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

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

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- master
10-
paths:
11-
- '**.hpp'
12-
- '**.h'
13-
- '**.cpp'
14-
- '**.py'
15-
- '.github/workflows/rolling-binary-build.yml'
16-
- '**/package.xml'
17-
- '**/CMakeLists.txt'
18-
- 'ros2_control-not-released.rolling.repos'
19-
- 'ros2_control-not-released.kilted.repos'
20-
push:
7+
pull_request: &event
218
branches:
229
- master
2310
paths:
@@ -30,6 +17,7 @@ on:
3017
- '**/CMakeLists.txt'
3118
- 'ros2_control-not-released.rolling.repos'
3219
- 'ros2_control-not-released.kilted.repos'
20+
push: *event
3321
schedule:
3422
# Run every morning to detect flakiness and broken dependencies
3523
- cron: '03 1 * * MON-FRI'

0 commit comments

Comments
 (0)