Skip to content

Commit

Permalink
Add the source setting to get the localization file.
Browse files Browse the repository at this point in the history
And notice that there's no need to checkout the repo.
Just need to upload the file.
  • Loading branch information
andy840119 committed Jun 10, 2022
1 parent 925c7b9 commit 22c733b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}
Expand Down

0 comments on commit 22c733b

Please sign in to comment.