From 307fc1dba356123f0550feae20ea744bd9571296 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Sat, 4 Oct 2025 18:26:26 +0200 Subject: [PATCH] action: make it work when used as a submodule --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 652b2d6a2..2227941b6 100644 --- a/action.yaml +++ b/action.yaml @@ -80,7 +80,7 @@ runs: - name: Ensure git history is available shell: bash run: | - if [[ ! -d "${{ github.action_path }}/.git" ]]; then + if [[ ! -e "${{ github.action_path }}/.git" ]]; then rm -rf "${{ github.action_path }}" git clone "https://github.com/${{ inputs.action_repository }}" "${{ github.action_path }}" git -C "${{ github.action_path }}" checkout "${{ inputs.action_ref }}" -- 2.47.3