Update crowdin.yml

This commit is contained in:
Xikaro
2026-02-27 11:11:30 +05:00
parent ebae8bba41
commit f3b3667c27

View File

@@ -37,10 +37,10 @@ on:
download_language:
description: 'Download language (leave empty for all)'
required: false
default: ''
default: 'all'
type: choice
options:
- ''
- 'all'
- 'de-DE'
- 'es-ES'
- 'fr-FR'
@@ -65,7 +65,7 @@ permissions:
jobs:
sync:
runs-on: ubuntu-latest
if: github.event.inputs.operation != 'status'
if: github.event.inputs.operation != 'status' || github.event.inputs.operation == ''
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -97,7 +97,7 @@ jobs:
- name: Set localization branch name
id: set_branch
run: |
if [ -z "${{ github.event.inputs.download_language }}" ]; then
if [ -z "${{ github.event.inputs.download_language || 'all' }}" ]; then
echo "branch_name=translations/all" >> $GITHUB_OUTPUT
echo "pr_title_suffix=for ALL languages" >> $GITHUB_OUTPUT
else
@@ -114,13 +114,13 @@ jobs:
import_eq_suggestions: true
skip_untranslated_files: true
download_translations: ${{ github.event.inputs.operation == 'download' || github.event.inputs.operation == 'both' || github.event_name == 'schedule' }}
download_language: ${{ github.event.inputs.download_language }}
download_language: ${{ github.event.inputs.download_language || 'all' }}
config: crowdin.yml
localization_branch_name: ${{ steps.set_branch.outputs.branch_name }}
create_pull_request: ${{ (github.event.inputs.skip_pr != 'true' || github.event.inputs.skip_pr == '') && ((github.event.inputs.operation == 'download' || github.event.inputs.operation == 'both') || github.event_name == 'schedule') }}
export_only_approved: ${{ github.event.inputs.export_approved_only || github.event_name == 'schedule' }}
commit_message: "[translation] New translations"
dryrun_action: ${{ github.event.inputs.dry_run == 'true' }}
dryrun_action: ${{ github.event.inputs.dry_run == 'true' || false }}
pull_request_base_branch_name: 'dev'
pull_request_team_reviewers: 'modern-team'
pull_request_title: "[🌐]: New Crowdin translations ${{ steps.set_branch.outputs.pr_title_suffix }}"
@@ -155,7 +155,7 @@ jobs:
# Status check job
status:
runs-on: ubuntu-latest
if: github.event.inputs.operation == 'status'
if: github.event.inputs.operation == 'status' || github.event.inputs.operation == ''
steps:
- name: Checkout repository
@@ -193,7 +193,7 @@ jobs:
echo "### 📊 Language Statistics" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ -n "${{ github.event.inputs.download_language }}" ]; then
if [ -n "${{ github.event.inputs.download_language || 'all' }}" ]; then
echo "🔍 **Selected Language**: ${{ github.event.inputs.download_language }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
# Get status for specific language