mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-25 18:59:07 +00:00
Split crowdin push and pull operation
This commit is contained in:
parent
92c7f75404
commit
6c815df467
2 changed files with 27 additions and 4 deletions
|
@ -2,7 +2,7 @@ on:
|
|||
schedule:
|
||||
- cron: "*/60 * * * *"
|
||||
|
||||
name: Crowdin Sync
|
||||
name: Download Translations from Crowdin
|
||||
|
||||
jobs:
|
||||
crowdin-sync:
|
||||
|
@ -15,15 +15,15 @@ jobs:
|
|||
- name: crowdin-action
|
||||
uses: crowdin/github-action@1.4.11
|
||||
with:
|
||||
upload_translations: true
|
||||
upload_translations: false
|
||||
download_translations: true
|
||||
export_only_approved: true
|
||||
push_translations: true
|
||||
commit_message: 'Update the localization files'
|
||||
commit_message: '[skip ci] Update the localization files'
|
||||
localization_branch_name: translations
|
||||
create_pull_request: true
|
||||
pull_request_title: 'Update the localization files'
|
||||
pull_request_body: 'These are the newest translations from [Crowdin](https://crowdin.com/project/project-lighthouse)'
|
||||
pull_request_body: 'These are the newest translations from [Crowdin](https://crowdin.com/project/project-lighthouse).'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
23
.github/workflows/crowdin-push.yml
vendored
Normal file
23
.github/workflows/crowdin-push.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
name: Upload Translations to Crowdin
|
||||
|
||||
jobs:
|
||||
crowdin-sync:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: crowdin-action
|
||||
uses: crowdin/github-action@1.4.11
|
||||
with:
|
||||
upload_translations: true
|
||||
download_translations: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue