Verified Commit 6e8d8a06 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

skip commit commands if nothing to commit

parent 315e29ee
Pipeline #30294 passed with stages
in 2 minutes and 24 seconds
...@@ -50,14 +50,14 @@ save:commitIndex: ...@@ -50,14 +50,14 @@ save:commitIndex:
# commit # commit
- git branch -D tmpBranch || true - git branch -D tmpBranch || true
- git checkout -b tmpBranch - git checkout -b tmpBranch || true
- git add --all - git add --all || true
- git commit -m "Update index" - git commit -m "Update index" || true
- git checkout $CI_COMMIT_REF_NAME - git checkout $CI_COMMIT_REF_NAME || true
- git pull origin $CI_COMMIT_REF_NAME - 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 push origin $CI_COMMIT_REF_NAME || true
- git branch -D tmpBranch - git branch -D tmpBranch || true
# build # build
# ------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------
......
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