From 234e49fc961dbbd6f553620048932aaa5e894cec Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Wed, 6 Nov 2024 23:55:53 +0100 Subject: [PATCH] Fix Crowdin integration This patch fixes the crowdin integration. The previous Actions workflow would generate the necessary patches gut never stage commit them to the repository. This also renames the workflows so they have names identical to what we use in the admin interface. --- ...nslations.yml => crowdin-download-translations.yml} | 10 +++++----- ...deploy-crowdin-keys.yml => crowdin-upload-keys.yml} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{update-translations.yml => crowdin-download-translations.yml} (94%) rename .github/workflows/{deploy-crowdin-keys.yml => crowdin-upload-keys.yml} (95%) diff --git a/.github/workflows/update-translations.yml b/.github/workflows/crowdin-download-translations.yml similarity index 94% rename from .github/workflows/update-translations.yml rename to .github/workflows/crowdin-download-translations.yml index 0e933606b..190c40232 100644 --- a/.github/workflows/update-translations.yml +++ b/.github/workflows/crowdin-download-translations.yml @@ -1,4 +1,4 @@ -name: Update translations +name: Crowdin » Download translations on: schedule: @@ -28,14 +28,14 @@ jobs: run: | crowdin download --config .crowdin.yaml -b main - - name: add new translations - run: | - git add src/i18n/locales - - name: update language list working-directory: src/i18n/locales run: $GITHUB_WORKSPACE/.github/generate-lngs.sh > ../lngs-generated.ts + - name: add new translations + run: | + git add src/i18n/ + - name: upload translations run: | if git commit -m "Automatically update translation keys"; then diff --git a/.github/workflows/deploy-crowdin-keys.yml b/.github/workflows/crowdin-upload-keys.yml similarity index 95% rename from .github/workflows/deploy-crowdin-keys.yml rename to .github/workflows/crowdin-upload-keys.yml index fc67f9583..57c4b6061 100644 --- a/.github/workflows/deploy-crowdin-keys.yml +++ b/.github/workflows/crowdin-upload-keys.yml @@ -1,4 +1,4 @@ -name: Deploy Crowdin keys +name: Crowdin » Upload keys on: push: