Verified Commit 883fc94e authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Fix.

parent b3135216
Pipeline #7376 passed with stages
in 1 minute and 13 seconds
......@@ -17,9 +17,9 @@ merge-from-overleaf:
stage: .pre
script:
- git remote add overleaf https://$OVERLEAF_EMAIL:$OVERLEAF_PASS@git.overleaf.com/$OVERLEAF_REPO || true
- git remote set-url origin "https://gitlab-ci-token:$PAT@$CI_SERVER_HOST/$CI_PROJECT_PATH.git"
- git remote add origin2 "https://gitlab-ci-token:$PAT@$CI_SERVER_HOST/$CI_PROJECT_PATH.git"
- git pull overleaf $CI_COMMIT_BRANCH
- git push origin $CI_COMMIT_BRANCH
- git push origin2 HEAD:$CI_COMMIT_BRANCH
rules:
- if: |
$OVERLEAF_REPO && $CI_COMMIT_BRANCH == "master"
......
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