Skip to content

Instantly share code, notes, and snippets.

@brandones
Created September 1, 2021 21:13
Show Gist options
  • Save brandones/1ecc166ef56dc6cf86f7ced87bcfedbb to your computer and use it in GitHub Desktop.
Save brandones/1ecc166ef56dc6cf86f7ced87bcfedbb to your computer and use it in GitHub Desktop.
GitHub Action to download translations from Transifex
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