File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1515 run : sudo apt-get install gettext
1616
1717 - name : Install Transifex CLI
18- if : github.repository == 'CleverRaven/Cataclysm-DDA'
1918 run : |
2019 curl -sL https://github.com/transifex/cli/releases/download/v1.6.17/tx-linux-amd64.tar.gz | sudo tar zxvf - -C /usr/bin tx
2120
@@ -30,11 +29,16 @@ jobs:
3029 fetch-depth : 1
3130
3231 - name : Pull translations
33- if : github.repository == 'CleverRaven/Cataclysm-DDA'
32+ continue-on-error : true
3433 env :
3534 TX_TOKEN : ${{ secrets.TX_TOKEN }}
36- run : tx pull -a --force
37-
35+ run : |
36+ if [ -z "${TX_TOKEN}" ]; then
37+ echo "No TX_TOKEN secret set in this repo, not pulling translations from Transifex"
38+ exit 1
39+ fi
40+ tx pull -a --force
41+
3842 - name : Discard invalid translations
3943 run : ./lang/discard_invalid_po.sh
4044
You can’t perform that action at this time.
0 commit comments