如何访问私人仓库上的 GitHub 组织共享工作流程?

How to access GitHub Organization shared workflows on private repos?

我按照这里的指南 https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/sharing-workflows-with-your-organization

我成功创建了一个 GitHub 组织共享工作流程,如果我在组织或我的帐户下创建 public 存储库(我是组织的成员)。

但是,如果我创建私人存储库,则看不到共享工作流程。我正在为我的会员帐户和组织使用免费套餐,所以我不确定这是否是问题所在。没有文件说明这是一项要求。

You can also create workflow templates in the .github repository and share them with other users in your organization.

https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

You can also create workflow templates in the .github repository and share them with other users in your organization.

仅适用于 GitHub 个企业计划组织:

to use templates to create workflows in private repositories, the organization must be part of an enterprise plan. GitHub documentation