# 计费和使用情况

GitHub Actions 工作流有使用限制。 使用费适用于超出仓库免费分钟数和存储空间量的仓库。

## 关于计费 GitHub Actions

GitHub Actions 使用对于公共存储库中的标准 GitHub 托管运行器和自托管运行器是免费的。 请参阅“[选择作业的运行器](/zh/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#standard-github-hosted-runners-for-public-repositories)”。 对于私有存储库，每个 GitHub 帐户都会获得一定额度的免费使用分钟数和存储量，用于 GitHub 托管运行器，具体取决于帐户的计划。 超出包含金额的任何使用量将计入你的帐户。 有关详细信息，请参阅 [GitHub Actions计费](/zh/billing/concepts/product-billing/github-actions)。

## 可用性

GitHub Actions 适用于所有 GitHub 产品，但 GitHub Actions 不适用于使用旧版每个存储库计划帐户拥有的专用存储库。 请参阅“[GitHub的计划](/zh/get-started/learning-about-github/githubs-plans)”。

## 使用限制和策略

使用 GitHub Actions 托管的运行器时，GitHub 的使用有若干限制。 请参阅“[Actions 限制](/zh/actions/reference/limits)”。

除了使用限制之外，还必须确保在GitHub Actions[GitHub服务条款](/zh/site-policy/github-terms/github-terms-of-service)中使用。 有关特定条款的详细信息GitHub Actions，请参阅[GitHub其他产品条款](/zh/site-policy/github-terms/github-terms-for-additional-products-and-features#actions)。

## GitHub Actions 使用情况指标

具有“查看组织操作指标”权限的组织所有者和用户可以查看 GitHub Actions 其组织的使用情况指标。 这些指标有助于了解您的 Actions 分钟数是如何使用的，以及它们在哪里被使用。 有关详细信息，请参阅“[查看组织的 GitHub Actions 指标](/zh/enterprise-cloud@latest/organizations/collaborating-with-groups-in-organizations/viewing-github-actions-metrics-for-your-organization)”。

查看使用情况指标时，请务必记住这一点 GitHub Actions 使用指标不对显示的指标应用分钟乘数。 虽然\_可以\_帮助你了解账单，但其主要目的是帮助你了解如何以及在何处使用组织中的“动作”分钟。

有关分钟乘数的详细信息，请参阅“[GitHub Actions计费](/zh/billing/concepts/product-billing/github-actions#baseline-minute-costs)”。

## 可重复使用的工作流程的计费

如果重复使用工作流，则计费始终与调用方工作流程相关联。 对 GitHub 托管运行程序的分配始终仅根据调用方的上下文进行评估。 调用方无法使用来自被调用仓库的 GitHub 托管运行器。

有关详细信息，请参阅“[重用工作流](/zh/actions/how-tos/reuse-automations/reuse-workflows)”。

## 后续步骤

您可以管理您的存储库、组织或企业帐户的 GitHub Actions 使用情况和保留策略。 有关详细信息，请参阅：

* [管理存储库的GitHub Actions设置](/zh/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository)
* [为组织中的 GitHub Actions 构件和日志配置保留期](/zh/organizations/managing-organization-settings/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization)
* [禁用或限制组织的 GitHub Actions](/zh/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization)
* [在企业中强制实施GitHub Actions策略](/zh/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise)