mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-07-23 02:43:47 +08:00
fix(ci): 翻译回推 commit 移除 [skip ci] (#41)
PR #40 实测发现:bot 回推的翻译 commit 带 `[skip ci]`,把新 SHA 上所有 workflow 都压掉了,必需检查(validate/translate/wait-for-copilot-review)永远不报告,PR 反而无法合并。 - 防循环不依赖 `[skip ci]`——translate job 的 bot actor 判断已经保证(bot 触发时 job skipped,而 skipped 满足必需检查) - validate / copilot 本来就应该在翻译产物上重跑 - 已加注释防止回归 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
7
.github/workflows/i18n-translate.yml
vendored
7
.github/workflows/i18n-translate.yml
vendored
@@ -269,7 +269,10 @@ jobs:
|
||||
git config user.name "desirecore-bot"
|
||||
git config user.email "bot@desirecore.net"
|
||||
git add -A
|
||||
git commit -m "chore(i18n): auto-translate skills [skip ci]" \
|
||||
# No [skip ci] on purpose: required checks (validate/translate) must
|
||||
# re-run and report on the translated commit, or the PR becomes
|
||||
# unmergeable. Loop prevention is the job-level bot-actor guard.
|
||||
git commit -m "chore(i18n): auto-translate skills" \
|
||||
-m "Generated by scripts/i18n/translate.py via i18n-translate workflow." \
|
||||
-m "Backend: ${TRANSLATE_BACKEND} Model: ${TRANSLATE_MODEL}"
|
||||
if ! git push prhead HEAD:"refs/heads/${HEAD_REF}"; then
|
||||
@@ -283,7 +286,7 @@ jobs:
|
||||
git config user.name "desirecore-bot"
|
||||
git config user.email "bot@desirecore.net"
|
||||
git add -A
|
||||
git commit -m "chore(i18n): auto-translate skills [skip ci]" \
|
||||
git commit -m "chore(i18n): auto-translate skills" \
|
||||
-m "Generated by scripts/i18n/translate.py via i18n-translate workflow." \
|
||||
-m "Backend: ${TRANSLATE_BACKEND:-github} Model: ${TRANSLATE_MODEL:-openai/gpt-5-mini}"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user