2022-01-10 13:28:39 +00:00
|
|
|
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:
|
2022-03-24 15:46:06 +00:00
|
|
|
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
|
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 }}
|
2022-08-09 10:37:20 +00:00
|
|
|
- uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v2
|
2022-01-10 13:28:39 +00:00
|
|
|
with:
|
2022-08-08 19:01:08 +00:00
|
|
|
go-version: ^1.18.4
|
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:
|
|
|
|
TRANSIFEX_USER: ${{ secrets.TRANSIFEX_USER }}
|
|
|
|
TRANSIFEX_PASS: ${{ secrets.TRANSIFEX_PASS }}
|