Skip to content

Commit 6219f97

Browse files
committed
fix(promote): 补充 validate job 的 outputs 声明以启用跨 job 输出传递;
GitHub Actions 中 core.setOutput() 仅创建步骤级输出,跨 job 访问 必须在 job 级别显式声明 outputs 映射。原 validate job 缺少此声明, 导致 needs.validate.outputs.* 在 promote job 中全部为空。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
1 parent 8924b27 commit 6219f97

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/promote.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
name: Validate prerelease status
5555
runs-on: ubuntu-latest
5656
timeout-minutes: 5
57+
outputs:
58+
release_id: ${{ steps.check-release.outputs.release_id }}
59+
tag_name: ${{ steps.check-release.outputs.tag_name }}
5760

5861
steps:
5962
- name: Check release exists and is a prerelease

0 commit comments

Comments
 (0)