From 3b5b58fb7578fdcdde9440b4db8e8b4451d126f7 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Thu, 5 Jan 2023 20:49:25 +0100 Subject: [PATCH] maint: add auto-sync of pot & hints to transifex --- .github/workflows/transifex.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/transifex.yml diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml new file mode 100644 index 000000000..09facc7e0 --- /dev/null +++ b/.github/workflows/transifex.yml @@ -0,0 +1,32 @@ +name: Transifex + +on: + push: + branches: + - master + +jobs: + transifex-upload: + + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - uses: actions/checkout@v3 + + - name: Install gettext & po4a + run: sudo apt-get install -y gettext po4a + + - name: Install modern Transifex client + run: | + mkdir -p $HOME/.local/bin && cd $HOME/.local/bin + curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash + echo "${HOME}/.local/bin" >> $GITHUB_PATH + + - run: ./maint/utils/sync-transifex/po-to-transifex.py + env: + TX_TOKEN: ${{ secrets.TX_TOKEN }} + + - run: ./maint/utils/sync-transifex/hints-to-transifex.py + env: + TX_TOKEN: ${{ secrets.TX_TOKEN }}