aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/update-docs-translations.yaml
blob: 6bc97e59d3866186643bef349cc7bf1c6f0707ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Update translations and documentation
on:
  workflow_dispatch:
  schedule:
    - cron: '42 3 * * 1'

jobs:

  update_transifex_docs:
    runs-on: ubuntu-latest
    name: Update translations and documentation
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
      - uses: actions/setup-go@v5
        with:
          go-version: ^1.19.6
      - run: |
          set -euo pipefail
          git config --global user.name 'Syncthing Release Automation'
          git config --global user.email 'release@syncthing.net'
          bash build.sh translate
          bash build.sh prerelease
          git push
        env:
          WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}