diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1567da67b884f88a4156de8b3237d475553b787b..a3f158485bd8528ea0bae37e81c3d72c5ff15a41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,20 +9,21 @@ linux: script: - git clone https://oauth2:$TOKEN_LIN_REPO@gitlab.reutlingen-university.de/letsgoing/ardublock-ide-lin.git remote - cd remote - - git config --global user.email "cicd@letsgoing.de" - - git config --global user.name "CICD Pipline" + - git config user.email "cicd@letsgoing.de" + - git config user.name "CICD Pipline" - git checkout dev2 - cd ArduBlockTool/tool/ - sh -c '{ rm *.jar; } || { echo "error"; }' - cp ../../../ArduBlockTool/tool/*.jar . - - cd ../../../ + - cd ../../ - ls -la - > if [ -z "$(git status --porcelain)" ]; then # Working directory clean echo "Working directory clean"; else - # Uncommitted changes + # Uncommitted changes + git add ArduBlockTool/tool/*.jar git commit -a -m "new $(< version.txt)"; git push -u origin $CI_COMMIT_BRANCH; fi