Created
September 1, 2021 21:13
-
-
Save brandones/1ecc166ef56dc6cf86f7ced87bcfedbb to your computer and use it in GitHub Desktop.
GitHub Action to download translations from Transifex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update translation files from Transifex | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TX_TOKEN: ${{ secrets.TRANSIFEX_API_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- run: python -m pip install --upgrade pip | |
- run: pip install transifex-client | |
- run: tx pull -a --minimum-perc=1 --traceback | |
- uses: EndBug/add-and-commit@v7 | |
with: | |
add: app/js/translations | |
message: 'Update translations' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment