在我的公司中,我们有数百个存储库,至少有20个我们想通过执行github行动来应用绵羊。
复制相同的github操作工作流程中的每个 .github/workflows
文件夹似乎不好我们将其更改,然后所有其他文件更改。
如何将一个github操作应用于多个github存储库,而不将此文件复制到每个github项目中的每个文件夹中?
这是一个GitHub企业帐户。
In my company we have a few hundred repositories, for at least 20 of those we want to apply linting by doing github actions.
It seems not good to copy the same github action workflow into each .github/workflows
folder for a few reasons one is that the action is duplicated, no single source of truth, there should be one file somewhere if we change it then all the other files change.
How to apply one github action to multiple github repositories without copying this file into every single .github/workflows
folder in every one of these github projects?
This is a github enterprise account.
发布评论
评论(1)
Q1 2024:旧的“组织范围范围的工作流”(请参阅第二部分)已替换为 sureteets 。 (我在在这里>那里)
例如,请参见“ 需要工作流程在合并之前通过 “
原始答案:检查此新功能(2023年1月)是否可以提供帮助:
Q1 2024: the old "organization-wide required workflow" (see below second section) have been replaced with rulesets. (I mentioned those before here or there)
See for instance "Require workflows to pass before merging"
Original answer: Check if this new feature (Jan. 2023) can help: