Skip to content

Commit

Permalink
feat(#217): Translations: git add only if modified files are present
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Mar 6, 2021
1 parent ada9f30 commit 6305e84
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tools/import-translations-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ if [ "$CIRCLE_PULL_REQUEST" == "" ]; then
# git add .
# git remote rm origin
# git remote add origin https://rm3l:$GITHUB_API_KEY@github.com/rm3l/maoni.git
git add .
git commit -m "Automatic translation import (build #$CIRCLE_BUILD_NUM)." \
-m "Commit $CIRCLE_SHA1"
git pull --rebase
#git push origin master 2>&1
git status --porcelain

[[ -z $(git status --porcelain) ]] || \
git add . && \
git commit -m "Automatic translation import (build #$CIRCLE_BUILD_NUM)." \
-m "Commit $CIRCLE_SHA1" && \
git pull --rebase && \
#git push origin master 2>&1

echo -e "... Done with importing translations from Crowdin\n"
fi

0 comments on commit 6305e84

Please sign in to comment.