From 602c8d6bd6870af3ab792c783c33baf57f924c91 Mon Sep 17 00:00:00 2001 From: cori hudson Date: Thu, 3 Nov 2022 17:00:57 -0400 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0f3b75d8..22b0da6f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -76,8 +76,12 @@ jobs: git config --global user.email $(git log --pretty=format:"%ae" -n1) git config --global user.name $(git log --pretty=format:"%an" -n1) git add . - git commit -m "pull new editor translations from Transifex" - git push $CIRCLE_REPOSITORY_URL HEAD:master + if git diff --cached --exit-code --quiet; then + echo "Nothing to commit." + else + git commit -m "pull new editor translations from Transifex" + git push $CIRCLE_REPOSITORY_URL HEAD:master + fi sync-help: <<: *defaults steps: