Skip to content

Commit

Permalink
fix: fetch branch before creating workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
EndBug authored Sep 2, 2022
1 parent 6bf9cab commit 5879eb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5879eb0

Please sign in to comment.