mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-01-14 20:21:21 +01:00
Update crowdin workflows
This commit is contained in:
parent
4dc56a6aa4
commit
0557ba63de
7
.github/workflows/crowdin-download.yaml
vendored
7
.github/workflows/crowdin-download.yaml
vendored
@ -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
|
||||
|
8
.github/workflows/crowdin-upload.yaml
vendored
8
.github/workflows/crowdin-upload.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user