diff options
| -rw-r--r-- | .github/workflows/translations.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 4882eb4f..e359512c 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -18,12 +18,13 @@ jobs: with: python-version: '3.8.x' - env: - CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }} + CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_V2_KEY }} + CROWDIN_PROJECT_ID: "299419" run: | git config --global user.email "inkstitch-crowdin@lex.gd" git config --global user.name "Ink/Stitch Crowdin integration" - wget --quiet https://downloads.crowdin.com/cli/v2/crowdin-cli.zip + wget --quiet https://downloads.crowdin.com/cli/v3/crowdin-cli.zip unzip -j crowdin-cli.zip sudo apt-get update @@ -47,10 +48,10 @@ jobs: make messages.po echo "uploading messages.po to crowdin" - java -jar crowdin-cli.jar -v upload -b main + java -jar crowdin-cli.jar -v upload -b main -T "$CROWDIN_API_KEY" -i "$CROWDIN_PROJECT_ID" echo "downloading new translations" - java -jar crowdin-cli.jar -v pull -b main + java -jar crowdin-cli.jar -v pull -b main -T "$CROWDIN_API_KEY" -i "$CROWDIN_PROJECT_ID" # Try to only commit if translations changed. Crowdin will update all # files when a new translation string is added but we don't need to |
