transifex-pull-translations.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: Download translations from Transifex
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '0 1 * * 1'
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout code
  11. uses: actions/checkout@v2
  12. - uses: actions/setup-node@v2-beta
  13. with:
  14. node-version: '15'
  15. - name: Install deps
  16. run: yarn
  17. - name: Update translations
  18. run: node scripts/transifex pull
  19. env:
  20. TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }}
  21. - name: Create pull request
  22. uses: peter-evans/create-pull-request@v3
  23. with:
  24. token: ${{ secrets.GITHUB_TOKEN }}
  25. branch: i18n-patch
  26. commit-message: Update locale files from Transifex
  27. title: Update locale files from Transifex
  28. body: >-
  29. Violentmonkey updates translations from Transifex every week automatically.
  30. If you want to help translate into your language, please visit [the transifex platform](https://www.transifex.com/projects/p/violentmonkey-nex/resource/messagesjson/).