From 22c733bab0bc59c9eaf086877922ff868f05db73 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Fri, 10 Jun 2022 20:23:21 +0800 Subject: [PATCH] Add the source setting to get the localization file. And notice that there's no need to checkout the repo. Just need to upload the file. --- .github/workflows/crowdin.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 20e11fe3f..17ee12b8e 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -22,18 +22,17 @@ jobs: run: dotnet localisation to-resx ./osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj --output ${{github.workspace}}\crowdin synchronize-with-crowdin: + name: Upload the localization into crowdin runs-on: ubuntu-latest - + needs: [generate-localization-file] steps: - - - name: Checkout - uses: actions/checkout@v2 - - name: crowdin action uses: crowdin/github-action@1.4.9 with: upload_translations: true - download_translations: true + download_translations: false + source: ${{github.workspace}}\crowdin\*.resx + translation: ${{github.workspace}}\crowdin\%file_name%.%locale%.%file_extension% env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}