Skip to main content

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

Canceling a workflow run

You can cancel a workflow run, including all jobs and steps, that is in progress.

谁可以使用此功能?

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

Canceling a workflow run

  1. 在 GitHub 上,导航到存储库的主页面。

  2. 在存储库名称下,单击 “操作”。

    “github/docs”存储库的选项卡的屏幕截图。 “操作”选项卡以橙色边框突出显示。

  3. 在左侧边栏中,单击您想要查看的工作流程。

    “操作”选项卡的左侧边栏的屏幕截图。工作流“CodeQL”以深橙色标出。

  4. From the list of workflow runs, click the name of the queued or in progress run that you want to cancel.

  5. In the upper-right corner of the workflow, click Cancel workflow.

    Screenshot showing the summary for a workflow that is currently running. The "Cancel workflow" button is highlighted with a dark orange outline.

Next steps

To learn about the process GitHub uses to cancel a workflow run, as well as the ways you can free up related resources, see Workflow cancellation reference.