Skip to content

Commit 4358128

Browse files
committed
Update github-actions.sh
* Fix rosdep key error Signed-off-by: LanderU <[email protected]>
1 parent 28cd8f2 commit 4358128

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

github-actions.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export RESET="\e[0m"
1616
# Paths
1717
export WS="/root/ros2_ws"
1818
export ROS2_DISTRO="rolling"
19+
export SKIP_PACKAGES="pendulum_demo"
1920

2021
function prepare_ws()
2122
{
@@ -38,7 +39,8 @@ function run_rosdep()
3839
apt update -qq && rosdep update
3940
rosdep install -q -y --from-paths . --ignore-src --rosdistro \
4041
"${ROS2_DISTRO}" \
41-
--as-root=apt:false || true
42+
--skip-keys "${SKIP_PACKAGES}" \
43+
--as-root=apt:false
4244
result=$?
4345
if [ $result -ne 0 ]; then
4446
echo -e "${RED}run_rosdep failled${RESET}"

0 commit comments

Comments
 (0)