Verified Commit 28243bbb authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

change tmp branch mechanism

parent ba3f9e30
......@@ -29,13 +29,13 @@ commit:
- git remote set-url origin "https://$GIT_ACCESS_USER:$GIT_ACCESS_TOKEN@${url_host}"
- git config $GIT_ACCESS_USER
- git config $GIT_ACCESS_EMAIL
- tmpBranch=$(base64 /dev/urandom | tr -d '/+' | dd bs=32 count=1 2>/dev/null)
- git branch -d tmpBranch
- git checkout -b tmpBranch
- git add --all
- git commit -m "Update models"
- git checkout $CI_COMMIT_REF_NAME
- git pull origin $CI_COMMIT_REF_NAME
- git merge $tmpBranch --ff
- git merge tmpBranch --ff
- git push origin $CI_COMMIT_REF_NAME || true
- git branch -D $tmpBranch
\ No newline at end of file
- git branch -d tmpBranch
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment