diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-04-17 20:59:01 +0200 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2024-04-22 23:37:25 +0000 |
commit | 5b20ab8a36c31f990355f859dc4554b609c2e923 (patch) | |
tree | dfc1d99e2fff9a2dd5d296bc725f2f6b8afa93d1 | |
parent | 1b042640ef7a2d7e04a983182071767ade2ccf82 (diff) | |
download | serverdata-5b20ab8a36c31f990355f859dc4554b609c2e923.tar.gz serverdata-5b20ab8a36c31f990355f859dc4554b609c2e923.tar.bz2 serverdata-5b20ab8a36c31f990355f859dc4554b609c2e923.tar.xz serverdata-5b20ab8a36c31f990355f859dc4554b609c2e923.zip |
Skip commit if there is nothing to do. Otherwise git commit errors out
the job
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbf1c315..93bfdaf1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,13 +22,13 @@ legacy: - ./evolved.py - cd .. - git status + - (git status --porcelain | grep '.*') || exit 0 # skip if nothing to commit - git config user.email "numa@themanaworld.org" - git config user.name "Numa" - git commit -a -m "Regenerate databases" --author="Numa <numa@themanaworld.org>" - git push # may cause a CI loop >.< only: - master - allow_failure: true evolved: stage: deploy @@ -45,13 +45,13 @@ evolved: - cp -v ../world/map/db/mob_db.conf db/pre-re/ - cp -v ../world/map/db/item_db.conf db/pre-re/ - git status + - (git status --porcelain | grep '.*') || exit 0 # skip if nothing to commit - git config user.email "numa@themanaworld.org" - git config user.name "Numa" - git commit -a -m "Sync with Legacy repo" --author="Numa <numa@themanaworld.org>" - git push only: - master - allow_failure: true pages: stage: deploy |