2021-10-08 11:43:48 +00:00
|
|
|
name: Crowdin Action
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-09-08 17:01:47 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
2021-10-08 11:43:48 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
synchronize-with-crowdin:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-08 17:01:47 +00:00
|
|
|
- name: Checkout
|
2023-02-22 00:10:39 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-04-10 20:26:56 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GH_ACCESS_TOKEN }}
|
2021-10-08 11:43:48 +00:00
|
|
|
|
2022-09-08 17:01:47 +00:00
|
|
|
- name: crowdin action
|
2023-09-15 14:43:49 +00:00
|
|
|
uses: crowdin/github-action@v1.13.0
|
2022-09-08 17:01:47 +00:00
|
|
|
with:
|
2023-09-22 16:33:37 +00:00
|
|
|
# upload sources
|
2023-03-10 23:54:25 +00:00
|
|
|
upload_sources: true
|
2023-09-22 16:33:37 +00:00
|
|
|
|
|
|
|
# upload translations (& auto-approve 'em)
|
|
|
|
upload_translations_args: '--auto-approve-imported'
|
2023-07-11 13:01:24 +00:00
|
|
|
upload_translations: true
|
2023-03-10 23:54:25 +00:00
|
|
|
push_translations: true
|
2023-09-22 16:33:37 +00:00
|
|
|
|
|
|
|
# download translations
|
|
|
|
download_translations: true
|
|
|
|
|
|
|
|
# GH config
|
2023-03-10 23:54:25 +00:00
|
|
|
commit_message: "New Crowdin translations by Github Action"
|
|
|
|
localization_branch_name: main
|
|
|
|
create_pull_request: false
|
2022-09-08 17:01:47 +00:00
|
|
|
env:
|
2023-04-04 19:43:00 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
|
2022-09-08 17:01:47 +00:00
|
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|