Update crowdin workflows

This commit is contained in:
Vankka 2023-07-19 18:41:02 +03:00
parent 4dc56a6aa4
commit 0557ba63de
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,9 @@
name: Crowdin translation download
on:
push:
branches: [dev]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
synchronize-with-crowdin:
@ -11,7 +12,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Download translations from Crowdin
uses: crowdin/github-action@1.4.8
uses: crowdin/github-action@1.11.0
with:
upload_translations: false
download_translations: true

View File

@ -2,7 +2,7 @@ name: Crowdin translation upload
on:
push:
branches: [dev]
branches: [main]
jobs:
synchronize-with-crowdin:
@ -11,18 +11,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Java
uses: actions/setup-java@v3.1.1
uses: actions/setup-java@v3
with:
distribution: "adopt"
java-version: "11"
- name: Make gradlew execuable
- name: Make gradlew executable
run: "sudo chmod +x gradlew"
- name: Build i18n application
run: "./gradlew i18n:build"
- name: Generate translation source
run: "java -jar i18n/build/libs/i18n-all.jar"
- name: Upload translations to Crowdin
uses: crowdin/github-action@1.4.8
uses: crowdin/github-action@1.11.0
with:
upload_translations: true
download_translations: false