diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2d3c457..43cbf34 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -300,14 +300,19 @@ jobs: echo "✅ Queue 已存在: usage-events" else echo "创建 Queue: usage-events" + CREATE_OUTPUT="" + CREATE_STATUS=0 + set +e CREATE_OUTPUT=$(bunx wrangler queues create usage-events --config apps/worker/wrangler.toml 2>&1) CREATE_STATUS=$? + set -e if [ $CREATE_STATUS -eq 0 ]; then echo "✅ Queue 已创建: usage-events" else if echo "$CREATE_OUTPUT" | grep -qi "already exists"; then echo "✅ Queue 已存在: usage-events" else + echo "❌ 队列创建失败,输出如下:" echo "$CREATE_OUTPUT" exit $CREATE_STATUS fi @@ -453,14 +458,19 @@ jobs: echo "✅ Queue 已存在: usage-events" else echo "创建 Queue: usage-events" + CREATE_OUTPUT="" + CREATE_STATUS=0 + set +e CREATE_OUTPUT=$(bunx wrangler queues create usage-events --config apps/worker/wrangler.toml 2>&1) CREATE_STATUS=$? + set -e if [ $CREATE_STATUS -eq 0 ]; then echo "✅ Queue 已创建: usage-events" else if echo "$CREATE_OUTPUT" | grep -qi "already exists"; then echo "✅ Queue 已存在: usage-events" else + echo "❌ 队列创建失败,输出如下:" echo "$CREATE_OUTPUT" exit $CREATE_STATUS fi diff --git a/.helloagents/CHANGELOG.md b/.helloagents/CHANGELOG.md index 4600b97..3ae98ac 100644 --- a/.helloagents/CHANGELOG.md +++ b/.helloagents/CHANGELOG.md @@ -199,6 +199,9 @@ ### 快速修改 +- **[ci]**: 队列创建失败时输出完整错误信息 — by lsy + - 类型: 快速修改(无方案包) + - 文件: .github/workflows/deploy.yml:263-320,416-473 - **[ci]**: 修复队列检查脚本的 heredoc 缩进导致的 YAML 解析失败 — by lsy - 类型: 快速修改(无方案包) - 文件: .github/workflows/deploy.yml:263-316,416-469