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