mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-02 20:22:08 +00:00
fix: Correct i18n workflow git commit logic
The previous workflow was resetting the branch which discarded the generated locale changes. This fix simplifies the commit logic to just add and commit the changes directly without branch manipulation. The issue was: - git stash + git checkout -B would reset to remote, losing changes - The detached HEAD in GitHub Actions made stash operations unreliable The fix: - Remove unnecessary git stash/checkout operations - Directly add, commit, and push the locale changes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2
.github/.i18n-trigger
vendored
2
.github/.i18n-trigger
vendored
@@ -8,3 +8,5 @@
|
||||
#
|
||||
# This trigger was created to fix missing subscription.* translations
|
||||
# that were added after the last automatic locale update.
|
||||
#
|
||||
# Re-triggering after fixing git commit workflow issue (2025-11-10)
|
||||
|
||||
12
.github/workflows/i18n-update-core.yaml
vendored
12
.github/workflows/i18n-update-core.yaml
vendored
@@ -48,12 +48,10 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name 'github-actions'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git fetch origin ${{ github.head_ref }}
|
||||
# Stash any local changes before checkout
|
||||
git stash -u
|
||||
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }}
|
||||
# Apply the stashed changes if any
|
||||
git stash pop || true
|
||||
git add src/locales/
|
||||
git diff --staged --quiet || git commit -m "Update locales"
|
||||
if ! git diff --staged --quiet; then
|
||||
git commit -m "Update locales"
|
||||
git push origin HEAD:${{ github.head_ref }}
|
||||
else
|
||||
echo "No locale changes to commit"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user