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-03-10 23:54:25 +00:00
|
|
|
uses: crowdin/github-action@1.5.1
|
2022-09-08 17:01:47 +00:00
|
|
|
with:
|
2023-03-10 23:54:25 +00:00
|
|
|
upload_sources: true
|
2022-09-08 17:01:47 +00:00
|
|
|
download_translations: true
|
2023-03-10 23:54:25 +00:00
|
|
|
push_translations: true
|
|
|
|
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 }}
|