Skip to content

Commit

Permalink
fix: respond to feanil suggestion 0
Browse files Browse the repository at this point in the history
- Adding trailing new line in build.yml
- Exit i18n.sh if in Github CI and token is missing
- Delete ./tx (since it would be auto generated).
This is intended to squashed.
  • Loading branch information
ghassanmas committed Dec 11, 2021
1 parent 94edab0 commit c87bd5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 358 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ jobs:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: |
./i18n.sh
tx push -s
tx push -s
357 changes: 0 additions & 357 deletions .tx/config

This file was deleted.

8 changes: 8 additions & 0 deletions i18n.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
# For more information, about sphinx-intl please visit:
# https://www.sphinx-doc.org/en/master/usage/advanced/intl.html


# Check if this script is running by github, and if it's
# missing the token then exit.
if [ "$CI" = true ] && [ -z "$TX_TOKEN" ]; then
echo 'Running cancelled, missing TX_TOKEN!'
exit 1
fi

# Root directory
BASE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Config file
Expand Down

0 comments on commit c87bd5e

Please sign in to comment.