2022-01-10 13:28:39 +00:00
|
|
|
name: Update translations and documentation
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2023-02-22 09:51:49 +00:00
|
|
|
- cron: '42 3 * * 1'
|
2022-01-10 13:28:39 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
update_transifex_docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Update translations and documentation
|
|
|
|
steps:
|
2023-04-29 13:21:46 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-10 13:45:47 +00:00
|
|
|
with:
|
2022-02-21 13:57:21 +00:00
|
|
|
fetch-depth: 0
|
2022-01-10 13:45:47 +00:00
|
|
|
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
2023-04-29 13:21:46 +00:00
|
|
|
- uses: actions/setup-go@v4
|
2022-01-10 13:28:39 +00:00
|
|
|
with:
|
2023-04-29 13:21:46 +00:00
|
|
|
go-version: ^1.19.6
|
2022-01-10 13:28:39 +00:00
|
|
|
- run: |
|
|
|
|
set -euo pipefail
|
2022-01-12 20:56:21 +00:00
|
|
|
git config --global user.name 'Syncthing Release Automation'
|
|
|
|
git config --global user.email 'release@syncthing.net'
|
2022-01-10 13:28:39 +00:00
|
|
|
bash build.sh translate
|
|
|
|
bash build.sh prerelease
|
|
|
|
git push
|
|
|
|
env:
|
2023-02-07 11:22:08 +00:00
|
|
|
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
|