Skip to content

Commit 8510287

Browse files
authored
Multi-Repo CI (#149)
* Add multi-repo CI * Update action step name
1 parent cf6b4ed commit 8510287

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,80 @@ jobs:
6969
clearpath_platform_description
7070
clearpath_sensors_description
7171
vcs-repo-file-url: dependencies.repos
72+
clearpath_common_src_head_ci:
73+
name: Jazzy Clearpath Source with Head Branch
74+
runs-on: ubuntu-24.04
75+
steps:
76+
- uses: actions/checkout@v3
77+
- uses: actions/checkout@v3
78+
with:
79+
repository: clearpathrobotics/repos-dep-update-action
80+
ref: 0.0.1
81+
path: repos-dep-update-action
82+
- name: Extract branch name
83+
shell: bash
84+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
85+
id: extract_branch
86+
- name: Use repos update action
87+
uses: ./repos-dep-update-action/
88+
with:
89+
branch: ${{ steps.extract_branch.outputs.branch }}
90+
input: dependencies.repos
91+
output: updated_dependencies.repos
92+
- name: Updated dependencies
93+
run: |
94+
cat updated_dependencies.repos
95+
- uses: ros-tooling/[email protected]
96+
with:
97+
required-ros-distributions: jazzy
98+
- uses: ros-tooling/[email protected]
99+
id: action_ros_ci_step
100+
with:
101+
target-ros2-distro: jazzy
102+
package-name: |
103+
clearpath_common
104+
clearpath_control
105+
clearpath_customization
106+
clearpath_description
107+
clearpath_generator_common
108+
clearpath_mounts_description
109+
clearpath_platform_description
110+
clearpath_sensors_description
111+
vcs-repo-file-url: updated_dependencies.repos
112+
clearpath_common_src_base_ci:
113+
if: github.event_name == 'pull_request'
114+
name: Jazzy Clearpath Source with Base Branch
115+
runs-on: ubuntu-24.04
116+
steps:
117+
- uses: actions/checkout@v3
118+
- uses: actions/checkout@v3
119+
with:
120+
repository: clearpathrobotics/repos-dep-update-action
121+
ref: 0.0.1
122+
path: repos-dep-update-action
123+
- name: Use repos update action
124+
uses: ./repos-dep-update-action/
125+
with:
126+
branch: ${{ github.event.pull_request.base.ref }}
127+
input: dependencies.repos
128+
output: updated_dependencies.repos
129+
- name: Updated dependencies
130+
run: |
131+
cat updated_dependencies.repos
132+
- uses: ros-tooling/[email protected]
133+
with:
134+
required-ros-distributions: jazzy
135+
- uses: ros-tooling/[email protected]
136+
id: action_ros_ci_step
137+
with:
138+
target-ros2-distro: jazzy
139+
package-name: |
140+
clearpath_common
141+
clearpath_control
142+
clearpath_customization
143+
clearpath_description
144+
clearpath_generator_common
145+
clearpath_mounts_description
146+
clearpath_platform_description
147+
clearpath_sensors_description
148+
vcs-repo-file-url: updated_dependencies.repos

0 commit comments

Comments
 (0)