fix: 修复Alpha Release工作流分支配置错误
## 问题描述 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 <noreply@anthropic.com>
This commit is contained in:
8
.github/workflows/alpha.yml
vendored
8
.github/workflows/alpha.yml
vendored
@ -3,7 +3,7 @@ name: Alpha Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- test
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Release alpha version
|
- name: Release alpha version
|
||||||
run: |
|
run: |
|
||||||
# 确保在正确的分支
|
# 确保在正确的分支
|
||||||
git checkout develop
|
git checkout test
|
||||||
|
|
||||||
# 获取当前时间戳和短commit hash
|
# 获取当前时间戳和短commit hash
|
||||||
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
||||||
@ -81,7 +81,7 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
state: 'open',
|
state: 'open',
|
||||||
base: 'develop'
|
base: 'test'
|
||||||
});
|
});
|
||||||
|
|
||||||
const comment = `🚀 **Alpha版本已发布!**
|
const comment = `🚀 **Alpha版本已发布!**
|
||||||
@ -97,7 +97,7 @@ jobs:
|
|||||||
npx dpml-prompt@${version} action <roleId>
|
npx dpml-prompt@${version} action <roleId>
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
💡 你可以使用这个alpha版本测试最新的develop分支功能。
|
💡 你可以使用这个alpha版本测试最新的test分支功能。
|
||||||
|
|
||||||
⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`;
|
⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user