From ab057f8275072fea83a0957a3d12c9a7a8894104 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 10 Jul 2023 18:34:22 +0100 Subject: [PATCH] Migrate `tx pull` to new CLI --- .github/workflows/translations.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 0a3cbd346..e14e4a88e 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -8,18 +8,20 @@ jobs: name: Pull translations from Transifex runs-on: ubuntu-22.04 container: - image: ubuntu:bionic + image: ubuntu:jammy steps: + - uses: supplypike/setup-bin@v3 + with: + uri: https://github.com/transifex/cli/releases/download/v1.6.7/tx-linux-amd64.tar.gz + name: tx + version: 1.6.7 - name: Install dependencies env: DEBIAN_FRONTEND: noninteractive run: > apt-get update && apt-get install -y git - python3-pip ssh - - name: Install tx - run: pip3 install transifex-client==0.13.9 - name: Checkout uses: actions/checkout@v1.2.0 - name: git hackery @@ -29,15 +31,15 @@ jobs: - name: tx init env: TX_TOKEN: ${{ secrets.TX_TOKEN }} - run: tx init --no-interactive --force + run: tx init - name: tx config env: TX_TOKEN: ${{ secrets.TX_TOKEN }} - run: tx config mapping --execute -r clementine.clementineplayer -s en -t PO --expression 'src/translations/.po' + run: tx add --organization davidsansome --project clementine --resource clementineplayer --file-filter 'src/translations/.po' --type PO src/translations/en.po - name: tx pull env: TX_TOKEN: ${{ secrets.TX_TOKEN }} - run: tx pull --all -f --no-interactive + run: tx pull -f -a - name: Setup git SSH uses: webfactory/ssh-agent@v0.4.1 with: