This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
forked from andreknieriem/photobooth
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub(workflows): allow download from Crowdin
Change-Id: Idb1c8338f5581c653acc7b286a3d20518b0538e4
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Crowdin Translation Download | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths: | ||
- 'resources/lang/en.json' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: crowdin action | ||
uses: crowdin/github-action@1.4.6 | ||
with: | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: true | ||
skip_untranslated_strings: true | ||
skip_untranslated_files: true | ||
export_only_approved: false | ||
push_translations: true | ||
localization_branch_name: crowdin_auto_import | ||
pull_request_title: '[Crowdin] Automatic translation import' | ||
pull_request_body: 'Automatic translation import from https://crowdin.com/project/photobooth' | ||
pull_request_base_branch_name: dev | ||
config: 'crowdin/config.yml' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |