feat: git clone repo
This commit is contained in:
1 parent
9893d56060
commit
28550e2270
5 files changed
+28
-17
No files matched your search
+6
-2
@@ -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} ./
|
||||
Reference in new issue
Block a user