summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Kienapfel <Docteh@users.noreply.github.com>2022-10-16 22:13:19 -0700
committerKyle Kienapfel <Docteh@users.noreply.github.com>2022-10-16 23:37:25 -0700
commitc70e1d0247508d933fb0a66ab44711af96da766b (patch)
tree184e63f3d5e5180b98d82702703978480a9e9a6d
parentd574bb46105a0184701e45b3e87e1dfad9cdfc49 (diff)
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.sh8
-rw-r--r--.github/workflows/ci.yml4
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 @@
# SPDX-FileCopyrightText: 2021 yuzu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
-# Setup RC file for tx
-cat << EOF > ~/.transifexrc
-[https://www.transifex.com]
-rest_hostname = https://rest.api.transifex.com
-token = $TRANSIFEX_API_TOKEN
-EOF
-
-
set -x
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:
- uses: actions/checkout@v3
with:
submodules: recursive
- fetch-depth: 0
+ fetch-depth: 0
- name: Update Translation
run: ./.ci/scripts/transifex/docker.sh
env:
- TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}
+ TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}
reuse:
runs-on: ubuntu-latest