fix(ci): staging E2E/API tests shell由sh改为bash #828
Reference in New Issue
Block a user
Delete Branch "fix/staging-shell-sh-to-bash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
staging两个job的run step用了
shell: sh,但脚本里用了bash特性(管道、变量展开等),导致staging job秒挂。修改
两处
shell: sh→shell: bash:验证
合入后观察develop push CI的Staging E2E Tests和Staging API Integration Tests是否能正常启动跑完整流程。
📊 审查概览
❌ 需修改的问题(严重)
无
💡 改进建议(一般)
无
✅ 良好实践
shell: sh修改为shell: bash是一种保守且稳健的做法。这可以防止因脚本内部使用了 Bash 特有语法(如数组、特定字符串处理或[[ ]]条件判断)而在严格兼容 POSIX 的sh环境(如 Alpine Linux 的/bin/sh)中运行失败,确保 CI 流程的稳定性。🤖 由 AI 代码审查机器人自动生成 | 2026-07-24 06:37:46 | 模型:
🗑️ 预览环境已清理
PR #828 已关闭或合并,对应的预览环境已被清理。