Skip to content

Commit fccf563

Browse files
authored
Fix Setup new ros2 apt source step in BuildAndRun.yaml
1 parent 4cd9d00 commit fccf563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/BuildAndRun.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: Setup new ros2 apt source
4545
run: |
46-
sudo apt install curl
46+
sudo apt-get update && sudo apt-get install curl
4747
export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
4848
curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb"
4949
sudo apt install /tmp/ros2-apt-source.deb

0 commit comments

Comments
 (0)