diff --git a/.github/workflows/crowdin-download.yaml b/.github/workflows/crowdin-download.yaml index b8fc2cf6..49b9d953 100644 --- a/.github/workflows/crowdin-download.yaml +++ b/.github/workflows/crowdin-download.yaml @@ -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 diff --git a/.github/workflows/crowdin-upload.yaml b/.github/workflows/crowdin-upload.yaml index 1e0f059a..3df77226 100644 --- a/.github/workflows/crowdin-upload.yaml +++ b/.github/workflows/crowdin-upload.yaml @@ -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