Skip to content

Commit

Permalink
Migrate tx pull to new CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
hatstand committed Jul 10, 2023
1 parent 58325e4 commit ab057f8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/<lang>.po'
run: tx add --organization davidsansome --project clementine --resource clementineplayer --file-filter 'src/translations/<lang>.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:
Expand Down

0 comments on commit ab057f8

Please sign in to comment.