diff options
| author | 2022-10-16 22:13:19 -0700 | |
|---|---|---|
| committer | 2022-10-16 23:37:25 -0700 | |
| commit | c70e1d0247508d933fb0a66ab44711af96da766b (patch) | |
| tree | 184e63f3d5e5180b98d82702703978480a9e9a6d | |
| parent | Merge pull request #9058 from Docteh/new_transifex_cli (diff) | |
| download | yuzu-c70e1d0247508d933fb0a66ab44711af96da766b.tar.gz yuzu-c70e1d0247508d933fb0a66ab44711af96da766b.tar.xz yuzu-c70e1d0247508d933fb0a66ab44711af96da766b.zip | |
Set TX_TOKEN for transifex client
I did some tests on my own fork, and we're writing to ~/.transifexrc but
the client can't seem to read that file. maybe issue with $HOME or
something.
Workaround is to set TX_TOKEN environment variable and now the pesky
~/.transifexrc file is not needed.
| -rwxr-xr-x | .ci/scripts/transifex/docker.sh | 8 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/.ci/scripts/transifex/docker.sh b/.ci/scripts/transifex/docker.sh index af7529944..6ddbfd0dd 100755 --- a/.ci/scripts/transifex/docker.sh +++ b/.ci/scripts/transifex/docker.sh | |||
| @@ -3,14 +3,6 @@ | |||
| 3 | # SPDX-FileCopyrightText: 2021 yuzu Emulator Project | 3 | # SPDX-FileCopyrightText: 2021 yuzu Emulator Project |
| 4 | # SPDX-License-Identifier: GPL-2.0-or-later | 4 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | 5 | ||
| 6 | # Setup RC file for tx | ||
| 7 | cat << EOF > ~/.transifexrc | ||
| 8 | [https://www.transifex.com] | ||
| 9 | rest_hostname = https://rest.api.transifex.com | ||
| 10 | token = $TRANSIFEX_API_TOKEN | ||
| 11 | EOF | ||
| 12 | |||
| 13 | |||
| 14 | set -x | 6 | set -x |
| 15 | 7 | ||
| 16 | echo -e "\e[1m\e[33mBuild tools information:\e[0m" | 8 | echo -e "\e[1m\e[33mBuild tools information:\e[0m" |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa5824824..25ef1f078 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml | |||
| @@ -19,11 +19,11 @@ jobs: | |||
| 19 | - uses: actions/checkout@v3 | 19 | - uses: actions/checkout@v3 |
| 20 | with: | 20 | with: |
| 21 | submodules: recursive | 21 | submodules: recursive |
| 22 | fetch-depth: 0 | 22 | fetch-depth: 0 |
| 23 | - name: Update Translation | 23 | - name: Update Translation |
| 24 | run: ./.ci/scripts/transifex/docker.sh | 24 | run: ./.ci/scripts/transifex/docker.sh |
| 25 | env: | 25 | env: |
| 26 | TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} | 26 | TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} |
| 27 | 27 | ||
| 28 | reuse: | 28 | reuse: |
| 29 | runs-on: ubuntu-latest | 29 | runs-on: ubuntu-latest |