From ec786375ed6c6479539ca9ab876a4256349bf910 Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Sun, 1 Nov 2020 09:45:18 +0800 Subject: [PATCH] CI: Fixed typo. --- .drone.yml | 2 +- scripts/commit_new_translation.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f9d027e..e8daa6c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -126,7 +126,7 @@ steps: from_secret: GITHUB_API commands: - apt update && apt install -y git python3-requests hub - - PUSH=1 SOURCE_DIR=$(pwd) ./scripts/commit_new_translation.sh + - PUSH=true SOURCE_DIR=$(pwd) ./scripts/commit_new_translation.sh node: location: external diff --git a/scripts/commit_new_translation.sh b/scripts/commit_new_translation.sh index 7359603..14ef4df 100755 --- a/scripts/commit_new_translation.sh +++ b/scripts/commit_new_translation.sh @@ -20,7 +20,7 @@ $SOURCE_DIR/scripts/sync_translation.py --lang-dir $SOURCE_DIR/lang/ --client $T git add lang/* git status -if $PUSH; then +if [ "$PUSH" = "true" ]; then echo "=> Pushing updates to bot-traduora branch..." if GIT_COMMITTER_NAME='Traduora Bot' GIT_COMMITTER_EMAIL='noreply@azlux.fr' git commit -m 'Bot: Update translation' --author "Traduora Bot "; then git push origin bot-traduora