Skip to content

Commit 7157973

Browse files
authored
[CI] Use YAML anchors (#934) (#935)
1 parent 847d5ae commit 7157973

File tree

8 files changed

+16
-120
lines changed

8 files changed

+16
-120
lines changed

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ name: Humble Binary Build
22
# description: 'Build & test all dependencies from released (binary) packages.'
33

44
on:
5-
pull_request:
6-
branches:
7-
- humble
8-
paths:
9-
- '**.hpp'
10-
- '**.cpp'
11-
- '.github/workflows/humble-binary-build.yml'
12-
- '**/package.xml'
13-
- '**/CMakeLists.txt'
14-
- '**.xacro'
15-
- '**.py'
16-
- '**.yaml'
17-
- 'ros2_control_demos-not-released.humble.repos'
18-
- '**.xml'
19-
push:
5+
pull_request: &event
206
branches:
217
- humble
228
paths:
@@ -30,6 +16,7 @@ on:
3016
- '**.yaml'
3117
- 'ros2_control_demos-not-released.humble.repos'
3218
- '**.xml'
19+
push: *event
3320
schedule:
3421
# Run every morning to detect flakiness and broken dependencies
3522
- cron: '03 1 * * MON-FRI'

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ name: Build Humble Dockerfile
22
# description: builds the dockerfile contained within the repo
33

44
on:
5-
pull_request:
6-
branches:
7-
- humble
8-
paths:
9-
- '**.hpp'
10-
- '**.cpp'
11-
- Dockerfile/**
12-
- '.github/workflows/humble-docker-build.yml'
13-
- '**/package.xml'
14-
- '**/CMakeLists.txt'
15-
- '**.xacro'
16-
- '**.py'
17-
- '**.yaml'
18-
- 'ros2_control_demos.humble.repos'
19-
push:
5+
pull_request: &event
206
branches:
217
- humble
228
paths:
@@ -30,6 +16,7 @@ on:
3016
- '**.py'
3117
- '**.yaml'
3218
- 'ros2_control_demos.humble.repos'
19+
push: *event
3320
schedule:
3421
# Run every morning to detect broken dependencies
3522
- cron: '40 1 * * MON-FRI'

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ name: Humble Semi-Binary Build
22
# description: 'Build & test that compiles the main dependencies from source.'
33

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

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,7 @@ name: Jazzy Binary Build
33
# description: 'Build & test all dependencies from released (binary) packages.'
44

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

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ name: Build Jazzy Dockerfile
22
# description: builds the dockerfile contained within the repo
33

44
on:
5-
pull_request:
6-
branches:
7-
- jazzy
8-
paths:
9-
- '**.hpp'
10-
- '**.cpp'
11-
- Dockerfile/**
12-
- '.github/workflows/jazzy-docker-build.yml'
13-
- '**/package.xml'
14-
- '**/CMakeLists.txt'
15-
- '**.xacro'
16-
- '**.py'
17-
- '**.yaml'
18-
- 'ros2_control_demos.jazzy.repos'
19-
push:
5+
pull_request: &event
206
branches:
217
- jazzy
228
paths:
@@ -30,6 +16,7 @@ on:
3016
- '**.py'
3117
- '**.yaml'
3218
- 'ros2_control_demos.jazzy.repos'
19+
push: *event
3320
schedule:
3421
# Run every morning to detect broken dependencies
3522
- cron: '40 1 * * MON-FRI'

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ name: Jazzy Semi-Binary Build
22
# description: 'Build & test that compiles the main dependencies from source.'
33

44
on:
5-
pull_request:
6-
branches:
7-
- jazzy
8-
paths:
9-
- '**.hpp'
10-
- '**.cpp'
11-
- '.github/workflows/jazzy-semi-binary-build.yml'
12-
- '**/package.xml'
13-
- '**/CMakeLists.txt'
14-
- '**.xacro'
15-
- '**.py'
16-
- '**.yaml'
17-
- 'ros2_control_demos.jazzy.repos'
18-
- '**.xml'
19-
push:
5+
pull_request: &event
206
branches:
217
- jazzy
228
paths:
@@ -30,6 +16,7 @@ on:
3016
- '**.yaml'
3117
- 'ros2_control_demos.jazzy.repos'
3218
- '**.xml'
19+
push: *event
3320
schedule:
3421
# Run every morning to detect flakiness and broken dependencies
3522
- cron: '33 1 * * MON-FRI'

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,7 @@ name: Rolling Binary Build
33
# description: 'Build & test all dependencies from released (binary) packages.'
44

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

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ name: Rolling Semi-Binary Build
22
# description: 'Build & test that compiles the main dependencies from source.'
33

44
on:
5-
pull_request:
6-
branches:
7-
- master
8-
paths:
9-
- '**.hpp'
10-
- '**.cpp'
11-
- '.github/workflows/rolling-semi-binary-build.yml'
12-
- '**/package.xml'
13-
- '**/CMakeLists.txt'
14-
- '**.xacro'
15-
- '**.py'
16-
- '**.yaml'
17-
- 'ros2_control_demos.rolling.repos'
18-
- '**.xml'
19-
push:
5+
pull_request: &event
206
branches:
217
- master
228
paths:
@@ -30,6 +16,7 @@ on:
3016
- '**.yaml'
3117
- 'ros2_control_demos.rolling.repos'
3218
- '**.xml'
19+
push: *event
3320
schedule:
3421
# Run every morning to detect flakiness and broken dependencies
3522
- cron: '33 1 * * MON-FRI'

0 commit comments

Comments
 (0)