Skip to content
Snippets Groups Projects
Verified Commit 6e8d8a06 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

skip commit commands if nothing to commit

parent 315e29ee
No related branches found
No related tags found
No related merge requests found
......@@ -50,14 +50,14 @@ save:commitIndex:
# commit
- git branch -D tmpBranch || true
- git checkout -b tmpBranch
- git add --all
- git commit -m "Update index"
- git checkout $CI_COMMIT_REF_NAME
- git checkout -b tmpBranch || true
- git add --all || true
- git commit -m "Update index" || true
- git checkout $CI_COMMIT_REF_NAME || true
- git pull origin $CI_COMMIT_REF_NAME
- git merge tmpBranch --ff
- git merge tmpBranch --ff || true
- git push origin $CI_COMMIT_REF_NAME || true
- git branch -D tmpBranch
- git branch -D tmpBranch || true
# build
# ------------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment