|
46 | 46 | run: | |
47 | 47 | (test -f install/micro_ros_setup/lib/micro_ros_setup/build_firmware.sh) && true || false |
48 | 48 |
|
| 49 | + - name: Sanitize Artifact Name |
| 50 | + id: sanitize-name |
| 51 | + run: | |
| 52 | + sanitized_name=$(echo "${{ inputs.ci_target_ref }}" | sed 's/[\/:*?"<>|\\]/_/g') |
| 53 | + echo "sanitized_name=$sanitized_name" >> $GITHUB_ENV |
| 54 | + echo "::set-output name=sanitized_name::$sanitized_name" |
| 55 | +
|
49 | 56 | - uses: actions/upload-artifact@v4.4.0 |
50 | 57 | with: |
51 | | - name: micro_ros_build_${{ inputs.ci_target_ref }} |
| 58 | + name: micro_ros_build_${{ steps.sanitize-name.outputs.sanitized_name }} |
52 | 59 | path: install |
53 | 60 |
|
54 | 61 | micro_ros_agent: |
|
79 | 86 | rosdep update --rosdistro ${{ env.ROS_DISTRO }} |
80 | 87 | rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y |
81 | 88 |
|
| 89 | + - name: Sanitize Artifact Name |
| 90 | + id: sanitize-name |
| 91 | + run: | |
| 92 | + sanitized_name=$(echo "${{ inputs.ci_target_ref }}" | sed 's/[\/:*?"<>|\\]/_/g') |
| 93 | + echo "sanitized_name=$sanitized_name" >> $GITHUB_ENV |
| 94 | + echo "::set-output name=sanitized_name::$sanitized_name" |
| 95 | +
|
82 | 96 | - uses: actions/download-artifact@v4.1.7 |
83 | 97 | with: |
84 | | - name: micro_ros_build_${{ inputs.ci_target_ref }} |
| 98 | + name: micro_ros_build_${{ steps.sanitize-name.outputs.sanitized_name }} |
85 | 99 | path: install |
86 | 100 |
|
87 | 101 | # Workaround https://github.com/actions/upload-artifact/issues/38 |
@@ -228,9 +242,16 @@ jobs: |
228 | 242 | rosdep update --rosdistro ${{ env.ROS_DISTRO }} |
229 | 243 | rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y |
230 | 244 |
|
| 245 | + - name: Sanitize Artifact Name |
| 246 | + id: sanitize-name |
| 247 | + run: | |
| 248 | + sanitized_name=$(echo "${{ inputs.ci_target_ref }}" | sed 's/[\/:*?"<>|\\]/_/g') |
| 249 | + echo "sanitized_name=$sanitized_name" >> $GITHUB_ENV |
| 250 | + echo "::set-output name=sanitized_name::$sanitized_name" |
| 251 | +
|
231 | 252 | - uses: actions/download-artifact@v4.1.7 |
232 | 253 | with: |
233 | | - name: micro_ros_build_${{ inputs.ci_target_ref }} |
| 254 | + name: micro_ros_build_${{ steps.sanitize-name.outputs.sanitized_name }} |
234 | 255 | path: install |
235 | 256 |
|
236 | 257 | # Workaround https://github.com/actions/upload-artifact/issues/38 |
|
0 commit comments