From d82d22c6555bce5cf65513ef4286df8916aad1e3 Mon Sep 17 00:00:00 2001 From: Michael Ripperger Date: Wed, 15 May 2024 11:09:28 -0500 Subject: [PATCH] Call apt update before running rosdep --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index c48ee2d..d1a0274 100644 --- a/action.yml +++ b/action.yml @@ -122,6 +122,7 @@ runs: if [ $? -ge 1 ]; then return 1; fi cd $GITHUB_WORKSPACE/upstream_ws if [[ "${{ inputs.rosdep-enabled }}" == "true" ]] && [[ "${{ runner.os }}" == "Linux" ]]; then + apt update -y -qq rosdep install --from-paths src -iry ${{ inputs.rosdep-install-args }} fi if [[ "${{ inputs.ccache-enabled }}" == "true" ]] && [[ "${{ runner.os }}" == "Linux" ]]; then @@ -141,6 +142,7 @@ runs: fi cd $GITHUB_WORKSPACE/${{ inputs.target-path }}/../ if [[ "${{ inputs.rosdep-enabled }}" == "true" ]]; then + apt update -y -qq rosdep install --from-paths src -iry ${{ inputs.rosdep-install-args }} fi if [[ "${{ inputs.ccache-enabled }}" == "true" ]]; then