Migrate tx pull
to new CLI
This commit is contained in:
parent
58325e45a7
commit
ab057f8275
16
.github/workflows/translations.yml
vendored
16
.github/workflows/translations.yml
vendored
@ -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/<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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user