Create crowdin.yml

This commit is contained in:
LoveSy 2022-03-08 10:53:36 +08:00 committed by GitHub
parent 4ead305cb7
commit e3048988c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
.github/workflows/crowdin.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Crowdin Action
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- manager/src/main/res/values/strings.xml
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: crowdin action
uses: crowdin/github-action@master
with:
upload_translations: false
download_translations: false
upload_sources: true
config: 'crowdin.yml'
crowdin_branch_name: master
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}