spcd/cmd/cd-clone-branch.sh
2024-03-25 20:49:12 +01:00

8 lines
145 B
Bash
Executable file

git clone \
--branch "${GITHUB_REF_NAME}" \
-- \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
'.'
rm --force --recursive \
'.git' '.gitignore'