Merge pull request #1269 from sillsdev/ImageGalleryControl-api-fixes #119
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
name: Update l10n Source Strings | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-update-l10n | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | |
with: | |
fetch-depth: 0 | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@51f68377c181a79065c61bd492bd49be4575c439 | |
with: | |
dotnet-version: 5.0.x | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe (Windows OS) | |
uses: microsoft/setup-msbuild@ab534842b4bdf384b8aaf93765dc6f721d9f5fab | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So the PATH can be set by this step | |
- name: Restore packages | |
run: msbuild l10n/l10n.proj /t:restore /p:Configuration=Release /p:Platform="Any CPU" | |
- name: Update l10n strings | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So gitversion can set environment vars during the build | |
run: msbuild l10n/l10n.proj /t:UpdateCrowdin /p:Configuration=Release /p:Platform="Any CPU" | |
- name: Install Crowdin cli | |
run: npm i -g @crowdin/cli | |
- name: Upload Palaso.en.xlf source file | |
working-directory: ./l10n | |
run: crowdin upload sources -T ${{ secrets.CROWDIN_PAT }} -i ${{ secrets.CROWDIN_PROJECT_ID }} |