Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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