diff --git a/mirror.sh b/mirror.sh index 7b6aade..f4d4d38 100755 --- a/mirror.sh +++ b/mirror.sh @@ -5,5 +5,6 @@ echo "$INPUT_SSH_PRIV" > "$HOME/.ssh/id_ed25519" echo "$INPUT_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts" git remote set-url --push origin "$INPUT_URL" +git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "$GITHUB_REF_NAME" git checkout "$GITHUB_REF_NAME" git push origin "$GITHUB_REF_NAME"