2021-07-29 03:14:29 +02:00
|
|
|
name: Crowdin translation download
|
|
|
|
|
|
|
|
on:
|
2023-07-19 17:41:02 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
synchronize-with-crowdin:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-20 09:22:05 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-07-29 03:14:29 +02:00
|
|
|
- name: Download translations from Crowdin
|
2023-07-19 17:51:55 +02:00
|
|
|
uses: crowdin/github-action@v1
|
2021-07-29 03:14:29 +02:00
|
|
|
with:
|
2023-07-19 18:21:06 +02:00
|
|
|
upload_sources: false
|
2021-07-29 03:14:29 +02:00
|
|
|
upload_translations: false
|
|
|
|
download_translations: true
|
|
|
|
localization_branch_name: i18n
|
|
|
|
create_pull_request: true
|
|
|
|
pull_request_title: "New Crowdin translations"
|
|
|
|
pull_request_body: ""
|
2023-07-19 19:11:32 +02:00
|
|
|
source: "i18n/build/source.yaml"
|
2023-07-19 18:32:57 +02:00
|
|
|
translation: "i18n/src/main/resources/translations/%three_letters_code%.yaml"
|
2023-07-19 18:57:49 +02:00
|
|
|
download_translations_args: "--verbose"
|
2021-07-29 03:14:29 +02:00
|
|
|
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|