From dc0dbed96eab56a087cbdab99b13dc2e36abbe62 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 10 Jan 2022 14:28:39 +0100 Subject: [PATCH] github: Add docs update workflow (#8105) --- .../workflows/update-docs-translations.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/update-docs-translations.yaml diff --git a/.github/workflows/update-docs-translations.yaml b/.github/workflows/update-docs-translations.yaml new file mode 100644 index 000000000..125062035 --- /dev/null +++ b/.github/workflows/update-docs-translations.yaml @@ -0,0 +1,26 @@ +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@v2 + - uses: actions/setup-go@v2 + with: + go-version: ^1.17.6 + - run: | + set -euo pipefail + git config --global user.name 'Syncthing Automation' + git config --global user.email 'automation@syncthing.net' + bash build.sh translate + bash build.sh prerelease + git push + env: + TRANSIFEX_USER: ${{ secrets.TRANSIFEX_USER }} + TRANSIFEX_PASS: ${{ secrets.TRANSIFEX_PASS }}