Skip to main content

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

Manually running a workflow

When a workflow is configured to run on the workflow_dispatch event, you can run the workflow using the Actions tab on GitHub, GitHub CLI, or the REST API.

注意:GitHub Enterprise Server 目前不支持 GitHub 托管的运行器。 可以在 GitHub public roadmap 上查看有关未来支持计划的更多信息。

Configuring a workflow to run manually

To run a workflow manually, the workflow must be configured to run on the workflow_dispatch event. To trigger the workflow_dispatch event, your workflow must be in the default branch. For more information about configuring the workflow_dispatch event, see "Events that trigger workflows".

执行这些步骤需要对仓库的写入访问权限。

Running a workflow

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. 在� 的存储库名称下,单击 “操作”。 主存储库导航中的“操作”选项卡

  3. In the left sidebar, click the workflow you want to run.

    Actions select workflow

  4. Above the list of workflow runs, select Run workflow. actions workflow dispatch

  5. Use the Branch dropdown to select the workflow's branch, and type the input parameters. Click Run workflow. actions manually run workflow

Running a workflow using the REST API

When using the REST API, you configure the inputs and ref as request body parameters. If the inputs are omitted, the default values defined in the workflow file are used.

Note: You can define up to 10 inputs for a workflow_dispatch event.

For more information about using the REST API, see the "Create a workflow dispatch event."