我有多个存储库具有相同的 github-actions 构建作业。
目前我复制了工作流文件,但它在所有存储库之间都是相同的,所以如果我可以进行导入会更好。
如何在所有这些存储库中导入相同的工作流文件?
最佳答案
目前看来还没有开箱即用的支持。请检查这个issue .
但是你可以看看GFlows - GitHub Workflow Templates
GFlows is a CLI tool that makes templating GitHub Workflows easy, using either Jsonnet or ytt (Yaml Templating Tool). It can:
- Import existing workflows to help you quickly get started.
- Validate GitHub workflows are up to date with their source templates and conform to a valid schema.
- Share common config code and workflows with GFlows Packages.
- Watch changes to the templates, so you can develop and refactor workflows with fast feedback on your changes.
https://stackoverflow.com/questions/64419695/
相关文章:
azure - Terraform 对动态资源的 ignore_changes
javascript - 使用 React 根据另一个下拉列表更新选择的选项
reactjs - 我怎么能告诉 typescript Prop 来自 react 克隆元素?
.htaccess - 使用指向 page.php 的 1 个参数编写干净的 URLS
MongoDB Atlas 搜索 - 搜索字符串中的多个术语具有 'and' 条件(不是 'or'
google-sheets - Google 表格中的 ArrayFormula 和 "AND"公式
html - 空白 nowrap 但如果大于 css 中的最大宽度则换行