The Wayback Machine - https://web.archive.org/web/20201019110049/https://docs.github.com/cn/free-pro-team@latest/github/setting-up-and-managing-your-enterprise-account/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-enterprise-account
我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

Configuring the retention period for GitHub Actions artifacts and logs in your enterprise account

Enterprise owners can configure the retention period for GitHub Actions artifacts and logs in an enterprise account.

企业帐户可用于 GitHub Enterprise Cloud 和 GitHub Enterprise Server。 For more information, see "About enterprise accounts."

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。

By default, the artifacts and log files generated by workflows are retained for 90 days before they are automatically deleted. You can adjust the retention period, depending on the type of repository:

  • For public repositories: you can change this retention period to anywhere between 1 day or 90 days.
  • For private, internal, and GitHub Enterprise repositories: you can change this retention period to anywhere between 1 day or 400 days.

When you customize the retention period, it only applies to new artifacts and log files, and does not retroactively apply to existing objects. For managed repositories and organizations, the maximum retention period cannot exceed the limit set by the managing organization or enterprise.

Setting the retention period for an enterprise

  1. 在任何页面的右上角,单击
    用于访问站点管理员设置的火箭图标
  2. In the left sidebar, click Enterprise.
    Enterprise tab in the Site admin settings
  3. 在企业账户侧边栏中,单击 Policies(政策)
    企业帐户侧边栏中的 Policies(政策)选项卡
  4. 在“ Policies(政策)”下,单击 Actions(操作)
  5. Under Artifact and log retention duration, enter a new value.
  6. Click Save to apply the change.

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。