Universal_Robots_ROS2_Driver
Universal_Robots_ROS2_Driver copied to clipboard
[CI] Reduce redundancy in workflow definitions
Try to simplify CI definitions by using reusable workflows
I did this for ros2_control repositories. Please check ros-controls/ros2_control_demos#157
I did this for ros2_control repositories. Please check ros-controls/ros2_control_demos#157
Looks like you hacked around the missing matrix capability for reusable workflows...
if: ${{ (inputs.ros_repo == 'all' || inputs.ros_repo == matrix.ROS_REPO) && github.event_name != 'schedule' }}
Why the && github.event_name != 'schedule'?
Why the
&& github.event_name != 'schedule'?
This is because on scheduled event you can not simply take the "triggering" sha but specific branch. GH-Actions run scheduled events from default branch and if we want to have scheduled build for foxy or galactic then we have to check proper branch and not try to build default branch for those ROS2 versions.
Closing this, since the target of this PR was reached through #636