From 9ceb5180c8bcd5e8a2440bea99d8dfa1bbd7e2a6 Mon Sep 17 00:00:00 2001 From: Xikaro Date: Wed, 25 Feb 2026 01:12:35 +0500 Subject: [PATCH] Update crowdin.yml --- .github/workflows/crowdin.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index d77dee22e..cd2b06493 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -91,12 +91,21 @@ jobs: echo " All source files are valid JSON" + - name: Cache Crowdin source files + uses: actions/cache@v4 + with: + path: ~/.crowdin/cache.json + key: ${{ runner.os }}-crowdin-cache-${{ github.ref_name }}-${{ hashFiles('**/crowdin.yml') }} + restore-keys: | + ${{ runner.os }}-crowdin-cache-${{ github.ref_name }}- + - name: Upload Sources to Crowdin if: github.event.inputs.operation == 'upload' || github.event.inputs.operation == 'both' || github.event_name == 'push' || github.event_name == 'schedule' uses: crowdin/github-action@v2.15.0 with: upload_sources: true upload_translations: false + upload_sources_args: '--cache' config: crowdin.yml upload_sources_args: ${{ github.event.inputs.force_upload == 'true' && '--auto-update --preserve-hierarchy' || '--preserve-hierarchy' }} dry_run: ${{ github.event.inputs.dry_run == 'true' }} @@ -146,7 +155,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }} CROWDIN_ID: ${{ vars.CROWDIN_ID }} - + # Status check job status: runs-on: ubuntu-latest