From c24ea24af30eced1ff99c4cd9cc1ece1758a59d8 Mon Sep 17 00:00:00 2001 From: ComfyUI Wiki Date: Wed, 1 Apr 2026 12:46:14 +0800 Subject: [PATCH] fix: auto-create translation label and remove silent error fallback in workflow --- .github/workflows/translation-sync.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/translation-sync.yml b/.github/workflows/translation-sync.yml index 3b72c28c..ae74ed46 100644 --- a/.github/workflows/translation-sync.yml +++ b/.github/workflows/translation-sync.yml @@ -121,6 +121,9 @@ jobs: REF="Triggered by [\`${SHORT_SHA}\`](https://github.com/${{ github.repository }}/commit/${AFTER})" fi + # Ensure the 'translation' label exists (creates it if missing) + gh label create "translation" --color "0075ca" --description "Auto-generated translation PR" 2>/dev/null || true + gh pr create \ --title "[i18n] Sync translations for #${PR_NUMBER:-$SHORT_SHA}" \ --body "This PR was auto-generated by the translation sync workflow. @@ -135,4 +138,4 @@ jobs: > To add a new language, add an entry to \`.github/scripts/translation-config.json\`." \ --base main \ --head "${{ steps.create_branch.outputs.branch }}" \ - --label "translation" || echo "PR may already exist for this branch" + --label "translation"