2022-07-18 18:41:19 +08:00
|
|
|
name: Crowdin Action
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
synchronize-with-crowdin:
|
2022-07-19 20:53:44 +08:00
|
|
|
if: contains(github.event.head_commit.message , 'i18n')
|
2022-07-18 18:41:19 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: crowdin action
|
|
|
|
uses: crowdin/github-action@1.4.10
|
|
|
|
with:
|
|
|
|
upload_translations: true
|
|
|
|
download_translations: true
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|