Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2025-08-27. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

GitHub Actions 的参考

查找要应用于 GitHub Actions 工作的信息。

Secure use reference

Security practices for writing workflows and using GitHub Actions features.

GitHub Actions 的工作流语法

工作流程是可配置的自动化过程,由一个或多个作业组成。 您必须创建 YAML 文件来定义工作流程配置。

触发工作流的事件

你可以配置工作流在 GitHub 上发生特定活动时运行、在预定的时间运行,或者在 GitHub 外部的事件发生时运行。

GitHub Actions 的工作流命令

您可以在工作流程或操作代码中运行 shell 命令时使用工作流程命令。

Variables reference

Find information for supported variables, naming conventions, limits, and contexts in GitHub Actions workflows.

Secrets reference

Find technical information about secrets in GitHub Actions.

对工作流和操作中的表达式求值

你可以对工作流和操作中的表达式求值。

Contexts reference

Find information about contexts available in GitHub Actions workflows, including available properties, access methods, and usage examples.

Deployments and environments

Find information about deployment protection rules, environment secrets, and environment variables.

Dependency caching reference

Find information on the functionality of dependency caching in workflows.

Metadata syntax reference

You can create actions to perform tasks in your repository. Actions require a metadata file that uses YAML syntax.

Actions 限制

GitHub Actions 中存在一些限制,当你纵向扩展时,可能会触及这些限制,其中部分限制可通过联系支持进行提升。

Reusable workflows reference

Learn how to avoid duplication when creating a workflow by reusing existing workflows.

OpenID Connect reference

Find information about using OpenID Connect (OIDC) to authenticate GitHub Actions workflows with cloud providers.

Dockerfile 对 GitHub Actions 的支持

为 Docker 容器创建 Dockerfile 时,你应该知道一些 Docker 指令如何与 GitHub Actions 及操作的元数据文件交互。

GitHub-hosted runners reference

Find information about GitHub-hosted runners, including their specifications and customization options.

Self-hosted runners reference

Find information about setting up and using self-hosted runners.

补充参数和设置

GitHub Actions Importer 有多个补充参数和设置,可根据需要定制迁移过程。

Extending GitHub Actions Importer with custom transformers

GitHub Actions Importer offers the ability to extend its built-in mapping.