From 8f592cb8808b07385e1353b28a294341c5358f2e Mon Sep 17 00:00:00 2001 From: sean Date: Sat, 5 Jul 2025 07:29:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DAlpha=20Release?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=88=86=E6=94=AF=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 问题描述 Alpha Release工作流错误地配置为在develop分支触发,导致: - develop分支同时触发Snapshot Release和Alpha Release - 违背了标准分支策略:develop→snapshot, test→alpha ## 修复内容 - 将Alpha Release触发分支从develop改为test - 更新工作流中的git checkout命令从develop改为test - 修正PR查找逻辑从develop分支改为test分支 - 更新注释说明从develop改为test分支 ## 修复后的分支策略 - develop分支 → Snapshot Release ✅ - test分支 → Alpha Release ✅ - staging分支 → Beta Release ✅ - main分支 → Production Release ✅ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/alpha.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 6cc6320..4cfa20d 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -3,7 +3,7 @@ name: Alpha Release on: push: branches: - - develop + - test workflow_dispatch: concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -39,7 +39,7 @@ jobs: - name: Release alpha version run: | # 确保在正确的分支 - git checkout develop + git checkout test # 获取当前时间戳和短commit hash TIMESTAMP=$(date +%Y%m%d%H%M%S) @@ -81,7 +81,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, state: 'open', - base: 'develop' + base: 'test' }); const comment = `🚀 **Alpha版本已发布!** @@ -97,7 +97,7 @@ jobs: npx dpml-prompt@${version} action \`\`\` - 💡 你可以使用这个alpha版本测试最新的develop分支功能。 + 💡 你可以使用这个alpha版本测试最新的test分支功能。 ⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`;