update-docs-translations.yaml 762 B

12345678910111213141516171819202122232425262728
  1. name: Update translations and documentation
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '42 3 * * 1'
  6. jobs:
  7. update_transifex_docs:
  8. runs-on: ubuntu-latest
  9. name: Update translations and documentation
  10. steps:
  11. - uses: actions/checkout@v5
  12. with:
  13. fetch-depth: 0
  14. token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
  15. - uses: actions/setup-go@v6
  16. with:
  17. go-version: stable
  18. - run: |
  19. set -euo pipefail
  20. git config --global user.name 'Syncthing Release Automation'
  21. git config --global user.email '[email protected]'
  22. bash build.sh translate
  23. bash build.sh prerelease
  24. git push
  25. env:
  26. WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}