diff --git a/action.yml b/action.yml index 4dffe3c..daa3905 100644 --- a/action.yml +++ b/action.yml @@ -36,10 +36,11 @@ runs: then echo "Cache hit - skipping submodule update" else - REPO_ARGS= if [[ ! -z "${{ inputs.repo }}" ]] then REPO_ARGS=(-C "${{ inputs.repo }}") + else + REPO_ARGS=() fi git "${REPO_ARGS[@]}" submodule update --init --recursive ${{ inputs.submodule }}