Skip to content

Commit e06c6eb

Browse files
authored
New Transifex CLI (#23)
#23
1 parent be8d29f commit e06c6eb

File tree

3 files changed

+994
-994
lines changed

3 files changed

+994
-994
lines changed

.github/workflows/update-and-build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- '*'
7+
workflow_dispatch:
78
jobs:
89
update-translation:
910
runs-on: ubuntu-latest
@@ -16,16 +17,17 @@ jobs:
1617
access_token: ${{ secrets.GITHUB_TOKEN }}
1718
- uses: actions/setup-python@master
1819
with:
19-
python-version: '3.9'
20+
python-version: 3
2021
- run: sudo apt-get install -y gettext
21-
- run: pip install 'transifex-client>=0.14' requests
22+
- run: pip install requests
2223
- uses: actions/checkout@master
2324
with:
2425
ref: ${{ matrix.version }}
2526
- run: ./manage_translation.py recreate_tx_config
2627
env:
2728
TX_TOKEN: ${{ secrets.TX_TOKEN }}
28-
- run: echo -e '[https://www.transifex.com]\napi_hostname = https://api.transifex.com\nhostname = https://www.transifex.com\nusername = api' > $HOME/.transifexrc
29+
- run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
30+
working-directory: /usr/local/bin
2931
- run: ./manage_translation.py fetch
3032
env:
3133
TX_TOKEN: ${{ secrets.TX_TOKEN }}

0 commit comments

Comments
 (0)