fix(ci): 修复通知优先级被预展开 #8
Reference in New Issue
Block a user
Delete Branch "fix/woodpecker-success-priority"
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?
问题:Woodpecker 会在 step 执行前展开
${NOTIFY_PRIORITY:-},导致容器内拿到的 priority 为空,成功通知最终走默认 normal。修复:改用
$NOTIFY_PRIORITY,把变量读取留到容器 shell 运行时;开始通知继续为 silent,成功通知为 low,失败通知仍不传 priority。验证:Woodpecker 配置 lint 通过。