Skip to content

Commit

Permalink
Source ROS workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Feb 18, 2024
1 parent d09ae58 commit 17f3c52
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/reusable-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ jobs:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
- name: Install system hooks
run: sudo apt-get install -qq ros-${{ inputs.ros_distro }}-ament-cppcheck ros-${{ inputs.ros_distro }}-ament-cpplint ros-${{ inputs.ros_distro }}-ament-lint-cmake ros-${{ inputs.ros_distro }}-ament-copyright
run: |
sudo apt-get install -qq ros-${{ inputs.ros_distro }}-ament-cppcheck ros-${{ inputs.ros_distro }}-ament-cpplint ros-${{ inputs.ros_distro }}-ament-lint-cmake ros-${{ inputs.ros_distro }}-ament-copyright
source /opt/ros/${{ inputs.ros_distro }}/setup.bash
echo ROS_PATH=$PATH >> $GITHUB_ENV
- env:
PATH: ${{ env.ROS_PATH }}
run: |
echo $PATH
python --version
- uses: pre-commit/[email protected]
env:
PATH: ${{ env.ROS_PATH }}
with:
extra_args: --all-files --hook-stage manual

0 comments on commit 17f3c52

Please sign in to comment.