Update crowdin.yml

This commit is contained in:
Xikaro
2026-02-25 01:12:35 +05:00
parent b2fccf7e45
commit 9ceb5180c8

View File

@@ -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