From a046c256ae1cd1ce6dc0a70a10381d3821517eea Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 28 Jun 2023 00:40:36 -0400 Subject: upgrade crowdin (#2374) --- .github/workflows/translations.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3