Add GitHub workflows for syncing Crowdin translations
Changelog-Added: Added GitHub workflows for syncing Crowdin translations Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
33
.github/workflows/crowdin-download.yml
vendored
Normal file
33
.github/workflows/crowdin-download.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Crowdin Download Translations
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [ crowdin-translation-complete ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
crowdin-download:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Crowdin download translations
|
||||
uses: crowdin/github-action@v2
|
||||
with:
|
||||
upload_sources: false
|
||||
upload_translations: false
|
||||
download_translations: true
|
||||
localization_branch_name: crowdin-translations
|
||||
create_pull_request: true
|
||||
pull_request_title: 'Crowdin Translations'
|
||||
pull_request_body: 'Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
|
||||
pull_request_base_branch_name: 'master'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
Reference in New Issue
Block a user