github - 使用另一个存储库的 github 操作工作流文件

我有多个存储库具有相同的 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 克隆元素?

r - 如何使用 ggplot 自定义多面图中的背景颜色

.htaccess - 使用指向 page.php 的 1 个参数编写干净的 URLS

MongoDB Atlas 搜索 - 搜索字符串中的多个术语具有 'and' 条件(不是 'or'

google-sheets - Google 表格中的 ArrayFormula 和 "AND"公式

html - 空白 nowrap 但如果大于 css 中的最大宽度则换行

json - Angular environment.ts 问题 JSON。然而 environme

android - 如何从 Android 应用程序内部了解用户谷歌播放国家/地区?