From 3a3b4574a82debb3ee1b2007a350f1c149b67734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 2 Apr 2025 13:22:38 +0200 Subject: [PATCH] ci: Fix exiting on no-potfile changes --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6df84cb..77d78b7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,7 +115,7 @@ update_potfile_dev: - git config --global user.name "${GITLAB_USER_NAME}" - git remote set-url --push origin "https://gitlab-ci-token:${FPRINTD_GITLAB_PUSH_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" - - if git diff --exit-code --ignore-matching-lines=POT-Creation-Date po/fprintd.pot; then echo exit; fi + - if git diff --exit-code --ignore-matching-lines=POT-Creation-Date po/fprintd.pot; then exit 0; fi - git add po/fprintd.pot - 'git commit -m "po/fprintd.pot: Update via pipeline $CI_PIPELINE_ID"' - git push origin HEAD:refs/heads/master -o ci.skip