From d0c9965287907d9aad520caa94202d22e6af6910 Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Fri, 2 Sep 2022 10:54:52 +0000 Subject: [PATCH] fix: fetch branch before creating workspace --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 790e279..074941e 100644 --- a/action.yml +++ b/action.yml @@ -113,7 +113,9 @@ runs: - name: Setup temp worktree if: env.action == 'remove' - run: git worktree add $worktree ${{ inputs.preview-branch }} + run: | + git fetch --no-recurse-submodules --depth=1 origin ${{ inputs.preview-branch }} + git worktree add $worktree ${{ inputs.preview-branch }} shell: bash - name: Remove preview directory