-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
925c7b9
commit 22c733b
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|