mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
30 lines
903 B
YAML
30 lines
903 B
YAML
name: Crowdin translation download
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
synchronize-with-crowdin:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Download translations from Crowdin
|
|
uses: crowdin/github-action@v1
|
|
with:
|
|
upload_sources: false
|
|
upload_translations: false
|
|
download_translations: true
|
|
localization_branch_name: i18n
|
|
create_pull_request: true
|
|
pull_request_title: "New Crowdin translations"
|
|
pull_request_body: ""
|
|
source: "i18n/source.yaml"
|
|
translation: "i18n/src/main/resources/translations/%three_letters_code%.yaml"
|
|
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|