Skip to content

Commit

Permalink
Fix colcon list (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Mar 2, 2024
1 parent 13ef1f4 commit cd3492e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/set-package-list/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ runs:
using: 'composite'
steps:
- id: colcon
# if a path is given, list the packages in the given path and its subdirectories from the path
# if no path is given, list all packages in the workspace
run: |
echo "package_list=$(colcon list --paths ${{ inputs.path }} --names-only | tr '\n' ' ') $(colcon list --paths ${{ inputs.path }}/* --names-only | tr '\n' ' ')" >> $GITHUB_OUTPUT
if [[ -n "${{ inputs.path }}" ]]; then
echo "package_list=$(colcon list --paths ${{ inputs.path }} --names-only | tr '\n' ' ') $(colcon list --paths ${{ inputs.path }}/* --names-only | tr '\n' ' ')" >> $GITHUB_OUTPUT
else
echo "package_list=$(colcon list --names-only | tr '\n' ' ')" >> $GITHUB_OUTPUT
fi
shell: bash
- id: split_repo
run: |
Expand Down

0 comments on commit cd3492e

Please sign in to comment.