Verified Commit ba3f9e30 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

variable tmp branch name

parent d1fd72bc
......@@ -29,12 +29,13 @@ commit:
- git remote set-url origin "https://$GIT_ACCESS_USER:$GIT_ACCESS_TOKEN@${url_host}"
- git config user.name $GIT_ACCESS_USER
- git config user.email $GIT_ACCESS_EMAIL
- tmpBranch=$(base64 /dev/urandom | tr -d '/+' | dd bs=32 count=1 2>/dev/null)
script:
- 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
Markdown is supported
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