Skip to content

Commit ca37cc8

Browse files
authored
Add workaround for ros apt source in Release.yaml
1 parent b2b74b3 commit ca37cc8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/Release.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ jobs:
3232
outputs:
3333
new_version: ${{ steps.new_version.outputs.new_version }}
3434
steps:
35+
# workaround until the fix release in the official ros image
36+
- name: Delete old ros2 apt source
37+
run: |
38+
rm /etc/apt/sources.list.d/ros2-latest.list
39+
rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
40+
41+
- name: Setup new ros2 apt source
42+
run: |
43+
sudo apt-get update && sudo apt-get install curl
44+
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}')
45+
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"
46+
sudo apt install /tmp/ros2-apt-source.deb
47+
3548
- name: Restore branch
3649
if: github.event.pull_request.merged == true
3750
uses: levonet/action-restore-branch@master

0 commit comments

Comments
 (0)