transifex.yml 777 B

1234567891011121314151617181920212223242526272829303132
  1. name: Transifex
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. transifex-upload:
  8. runs-on: ubuntu-latest
  9. timeout-minutes: 15
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Install gettext & po4a
  13. run: sudo apt-get install -y gettext po4a
  14. - name: Install modern Transifex client
  15. run: |
  16. mkdir -p $HOME/.local/bin && cd $HOME/.local/bin
  17. curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
  18. echo "${HOME}/.local/bin" >> $GITHUB_PATH
  19. - run: ./maint/utils/sync-transifex/po-to-transifex.py
  20. env:
  21. TX_TOKEN: ${{ secrets.TX_TOKEN }}
  22. - run: ./maint/utils/sync-transifex/hints-to-transifex.py
  23. env:
  24. TX_TOKEN: ${{ secrets.TX_TOKEN }}