feat: git clone repo

This commit is contained in:
david authored and David FILLON committed 2024-07-29 14:56:58 +02:00
1 parent 9893d56060
commit 28550e2270
5 files changed
+28 -17

No files matched your search

+6 -2
View File
@@ -1,3 +1,7 @@
#!/bin/sh -l
env
pwd
git version
[ -z "$GH_TOKEN" ] \
&& git clone --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ./ \
|| git clone --branch ${GITHUB_REF_NAME} $(echo ${GITHUB_SERVER_URL} | sed -r "s|(https*://)|\1${GH_TOKEN}@|")/${GITHUB_REPOSITORY} ./