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