Export the env variables file in pull workflow #5
Workflow file for this run
This file contains hidden or 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: 🌎 Pull translations | |
| # TODO: uncomment this since when workflow is finalized | |
| # on: | |
| # schedule: | |
| # - cron: "5 1 * * *" | |
| # workflow_dispatch: | |
| # TODO: remove following `on` config when workflow is finalized | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - '.github/workflows/translations_pull.yml' | |
| jobs: | |
| build: | |
| name: Pull translations | |
| runs-on: ubuntu-latest | |
| env: | |
| TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Transifex CLI | |
| run: | | |
| curl -OL https://github.com/transifex/cli/releases/download/v1.6.17/tx-linux-amd64.tar.gz | |
| tar -xvzf tx-linux-amd64.tar.gz | |
| - name: Pull from Transifex | |
| run: ./tx pull -a --force | |
| - name: Export the env variables file | |
| run: | | |
| cp .env.example .env | |
| - name: Compile translation messages | |
| run: docker compose run --user root app python manage.py compilemessages | |
| # TODO: uncomment this block when workflow is finalized | |
| # - name: Add and commit new translations | |
| # uses: EndBug/add-and-commit@v9 | |
| # with: | |
| # message: Synchronize translations | |
| # author_name: Translation update 💬 | |
| # author_email: [email protected] | |
| # add: '["docker-app/qfieldcloud/locale"]' |