Skip to content

Commit 858a44d

Browse files
esteveCopilot
andauthored
use a matrix to handle all tracks
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d8f707b commit 858a44d

1 file changed

Lines changed: 14 additions & 30 deletions

File tree

.github/workflows/bloom-release.yaml

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ jobs:
1010
name: Release
1111
runs-on: ubuntu-latest
1212
if: github.repository_owner == 'ros2-rust'
13+
strategy:
14+
matrix:
15+
include:
16+
- rosdistro: rolling
17+
track: rolling
18+
- rosdistro: kilted
19+
track: kilted
20+
- rosdistro: jazzy
21+
track: jazzy
22+
- rosdistro: humble
23+
track: humble
1324
permissions:
1425
contents: write
1526
env:
@@ -22,40 +33,13 @@ jobs:
2233
fetch-depth: 0
2334
persist-credentials: false
2435

25-
- name: Run bloom-release (rolling)
36+
- name: Run bloom-release (${{ matrix.rosdistro }})
2637
uses: esteve/bloom-release-action@71365036c57b828150cf121df6ae4d9fc481fa5a
2738
with:
2839
mode: release
2940
repository: rosidl_rust
30-
rosdistro: rolling
31-
track: rolling
32-
release-repository: https://github.com/ros2-gbp/rosidl_rust-release.git
33-
34-
- name: Run bloom-release (kilted)
35-
uses: esteve/bloom-release-action@71365036c57b828150cf121df6ae4d9fc481fa5a
36-
with:
37-
mode: release
38-
repository: rosidl_rust
39-
rosdistro: kilted
40-
track: kilted
41-
release-repository: https://github.com/ros2-gbp/rosidl_rust-release.git
42-
43-
- name: Run bloom-release (jazzy)
44-
uses: esteve/bloom-release-action@71365036c57b828150cf121df6ae4d9fc481fa5a
45-
with:
46-
mode: release
47-
repository: rosidl_rust
48-
rosdistro: jazzy
49-
track: jazzy
50-
release-repository: https://github.com/ros2-gbp/rosidl_rust-release.git
51-
52-
- name: Run bloom-release (humble)
53-
uses: esteve/bloom-release-action@71365036c57b828150cf121df6ae4d9fc481fa5a
54-
with:
55-
mode: release
56-
repository: rosidl_rust
57-
rosdistro: humble
58-
track: humble
41+
rosdistro: ${{ matrix.rosdistro }}
42+
track: ${{ matrix.track }}
5943
release-repository: https://github.com/ros2-gbp/rosidl_rust-release.git
6044

6145
release-pr:

0 commit comments

Comments
 (0)