Skip to main content

Usage limits, billing, and administration

There are usage limits for GitHub Actions workflows. Usage charges apply to repositories that go beyond the amount of free minutes and storage for a repository.

注: GitHub 托管的运行器目前在 GitHub Enterprise Server 上不受支持。 您可以在 GitHub 公共路线图 上查看有关未来支持计划的更多信息。

About billing for GitHub Actions

GitHub Actions 帮助您在您存储代码的同一位置自动执行软件开发工作流程,并协作处理拉取请求和议题。 您可以写入个别任务,称为操作,并结合它们创建一个自定义的工作流程。 For more information, see "Understanding GitHub Actions" and "About GitHub Actions for enterprises."

GitHub Actions usage is free for GitHub Enterprise Server instances that use self-hosted runners. For more information, see "About self-hosted runners."

Usage limits

Usage limits apply to self-hosted runners. For more information, see "About self-hosted runners."

Billing for reusable workflows

If you reuse a workflow, billing is always associated with the caller workflow. Assignment of GitHub-hosted runners is always evaluated using only the caller's context. The caller cannot use GitHub-hosted runners from the called repository.

For more information see, "Reusing workflows."

Artifact and log retention policy

You can configure the artifact and log retention period for your repository, organization, or enterprise account.

默认情况下,工作流程生成的构件和日志文件将保留 90 天,然后自动删除。 您可以将此保留期更改为 1 至 400 天。

自定义保留期时,它仅适用于新构件和日志文件,并且不追溯性地应用于现有对象。 对于托管的仓库和组织,最长保留期不能超过管理组织或企业设置的限制。

For more information, see:

Disabling or limiting GitHub Actions for your repository or organization

By default, after GitHub Actions is enabled on 您的 GitHub Enterprise Server 实例, it is enabled on all repositories and organizations. You can choose to disable GitHub Actions or limit it to actions in your enterprise.

For more information, see:

Disabling and enabling workflows

You can enable and disable individual workflows in your repository on GitHub.

为防止不必要的工作流程运行,可能会自动禁用计划的工作流程。 在复刻公共仓库时,默认情况下将禁用计划的工作流程。 在公共仓库中,当 60 天内未发生仓库活动时,将自动禁用计划的工作流程。

For more information, see "Disabling and enabling a workflow."