spcd/cd-clone-branch

9 lines
145 B
Text
Raw Normal View History

2024-03-22 22:34:01 +00:00
git clone \
--branch "${GITHUB_REF_NAME}" \
-- \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
'.'
2024-03-22 23:04:18 +00:00
rm --force --recursive \
'.git' '.gitignore'