-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add multi-repo CI * Use updated_dependencies file * Skip if not pull request
- Loading branch information
1 parent
c56bf37
commit f7e4f86
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,72 @@ jobs: | |
clearpath_robot | ||
clearpath_sensors | ||
vcs-repo-file-url: dependencies.repos | ||
clearpath_robot_src_head_ci: | ||
name: Jazzy Clearpath Source with Head Branch | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: clearpathrobotics/repos-dep-update-action | ||
ref: 0.0.1 | ||
path: repos-dep-update-action | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
- name: Use repos update action | ||
uses: ./repos-dep-update-action/ | ||
with: | ||
branch: ${{ steps.extract_branch.outputs.branch }} | ||
input: dependencies.repos | ||
output: updated_dependencies.repos | ||
- name: Updated dependencies | ||
run: | | ||
cat updated_dependencies.repos | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: jazzy | ||
- uses: ros-tooling/[email protected] | ||
id: action_ros_ci_step | ||
with: | ||
target-ros2-distro: jazzy | ||
package-name: | | ||
clearpath_diagnostics | ||
clearpath_generator_robot | ||
clearpath_robot | ||
clearpath_sensors | ||
vcs-repo-file-url: updated_dependencies.repos | ||
clearpath_robot_src_base_ci: | ||
if: github.event_name == 'pull_request' | ||
name: Jazzy Clearpath Source with Base Branch | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: clearpathrobotics/repos-dep-update-action | ||
ref: 0.0.1 | ||
path: repos-dep-update-action | ||
- name: Use repos update action | ||
uses: ./repos-dep-update-action/ | ||
with: | ||
branch: ${{ github.event.pull_request.base.ref }} | ||
input: dependencies.repos | ||
output: updated_dependencies.repos | ||
- name: Updated dependencies | ||
run: | | ||
cat updated_dependencies.repos | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: jazzy | ||
- uses: ros-tooling/[email protected] | ||
id: action_ros_ci_step | ||
with: | ||
target-ros2-distro: jazzy | ||
package-name: | | ||
clearpath_diagnostics | ||
clearpath_generator_robot | ||
clearpath_robot | ||
clearpath_sensors | ||
vcs-repo-file-url: updated_dependencies.repos |