We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a2ec1 commit 92f086bCopy full SHA for 92f086b
.github/container/git-clone.sh
@@ -77,6 +77,13 @@ pushd ${DESTINATION}
77
git checkout ${GIT_REF}
78
COMMIT_SHA=$(git rev-parse HEAD)
79
git submodule update --init --recursive
80
+if [[ "${GIT_REPO}" == *"gitlab"* ]]; then
81
+ git remote remove origin
82
+ if grep -q -r gitlab-ci-token .git; then
83
+ grep -r gitlab-ci-token .git | awk -F: '{print $1}' | xargs rm -f
84
+ fi
85
+ git branch -D main
86
+fi
87
popd
88
89
## update the manifest file
0 commit comments