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

View File

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