为中断性变更引入显式冲突 #6313
BrandonStudio
started this conversation in
Ideas | 灵感
为中断性变更引入显式冲突
#6313
Replies: 1 comment 1 reply
-
感觉可以哎,可以细化下怎么搞 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
背景
问题
目前使用云服务部署的用户通常采用了 Fork + 自动同步的模式,自动同步上游更改。
这种模式下,当上游主分支引入了中断性变更时,例如某些不兼容的环境变量,用户将在不知情的情况下自动引入了这些变更,使得程序运行出错。
相关特性
自动同步使用 GitHub Actions 完成,该操作使用
GITHUB_TOKEN
对存储库进行写入操作。GITHUB_TOKEN
的权限不能写入.github/workflows
中的工作流文件。设计
在
.github/workflows
中添加一个无效的工作流,记录所有中断性变更。例如,示例文件可能是这样的:
好处
Beta Was this translation helpful? Give feedback.
All reactions