fix: conditionally upload sources to Crowdin based on repository

- Updated the GitHub Actions workflow to conditionally upload sources to Crowdin only for the MCCTeam/Minecraft-Console-Client repository, enhancing the workflow's flexibility.
This commit is contained in:
BruceChen 2026-04-06 20:06:38 +08:00
parent 5c323772b3
commit 3073137006

View file

@ -73,7 +73,7 @@ jobs:
uses: crowdin/github-action@v2.4.0
if: steps.cache-check.outputs.cache-hit != 'true' && steps.crowdin-check.outputs.available == 'true'
with:
upload_sources: false
upload_sources: ${{ github.repository == 'MCCTeam/Minecraft-Console-Client' }}
upload_translations: false
download_translations: true