Separate task for downloading the source

This commit is contained in:
Vankka 2023-07-19 21:31:22 +03:00
parent c0f1d6707a
commit 9939527f4b
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -11,12 +11,26 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Download translations from Crowdin - name: Download source from Crowdin
uses: crowdin/github-action@v1 uses: crowdin/github-action@v1
with: with:
upload_sources: false upload_sources: false
upload_translations: false upload_translations: false
download_sources: true download_sources: true
download_translations: false
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
source: "source.yaml"
translation: "/i18n/src/main/resources/translations/%three_letters_code%.%file_extension%"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download translations from Crowdin
uses: crowdin/github-action@v1
with:
upload_sources: false
upload_translations: false
download_sources: false
download_translations: true download_translations: true
download_translations_args: "--verbose" download_translations_args: "--verbose"
@ -28,7 +42,7 @@ jobs:
project_id: ${{ secrets.CROWDIN_PROJECT_ID }} project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
source: "i18n/build/source.yaml" source: "source.yaml"
translation: "/i18n/src/main/resources/translations/%three_letters_code%.%file_extension%" translation: "/i18n/src/main/resources/translations/%three_letters_code%.%file_extension%"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}