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