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:
snomiao
2025-11-10 10:00:20 +00:00
parent 0d63ac404d
commit 732ba06c86

View File

@@ -1,6 +1,6 @@
# This file is used to trigger the i18n workflow
# See .github/workflows/i18n-update-core.yaml
#
#
# The workflow will automatically:
# 1. Collect i18n strings from the UI
# 2. Generate translations using OpenAI
@@ -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)