diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2023-06-28 00:40:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 06:40:36 +0200 |
| commit | a046c256ae1cd1ce6dc0a70a10381d3821517eea (patch) | |
| tree | 6c1426b9de00f3416c2d87c2a8586a044b70ef59 /.github | |
| parent | d836245e1f4e5fbd2213c18588641b7bfec58ccb (diff) | |
upgrade crowdin (#2374)
Diffstat (limited to '.github')
| -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 |
