简体   繁体   English

Github 操作 - 取消/手动触发工作流程

[英]Github actions - cancel/manually trigger workflow

I have a public repo, is it possible to enable canceling/manually triggering workflow for people who are not the repo owners?我有一个公共回购,是否可以为非回购所有者的人启用取消/手动触发工作流程?
I have added the below part to manually trigger the workflow.我添加了以下部分来手动触发工作流程。

on: workflow_dispatch

I am able to do the above operations, but people who are raising a PR or something to my repo cannot cancel or manually trigger it. 我能够执行上述操作,但是向我的 repo 提出 PR 或其他内容的人无法取消或手动触发它。
Is there any kind of permissions that need to be given to that person to do so? 是否需要授予该人任何类型的权限才能这样做?

They need Collaborator access for a repository owned by a user account .他们需要协作者访问用户帐户所拥有的存储库 For an organization repository, they need at least the Write role .对于组织存储库,他们至少需要Write 角色

Manually running a workflow手动运行工作流
Write access to the repository is required to perform these steps.执行这些步骤需要对存储库的写入权限。

https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

Canceling a workflow取消工作流程
Write access to the repository is required to perform these steps.执行这些步骤需要对存储库的写入权限。

https://docs.github.com/en/actions/managing-workflow-runs/canceling-a-workflow https://docs.github.com/en/actions/managing-workflow-runs/canceling-a-workflow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在另一个工作流成功运行后手动触发 Github Actions 工作流 - Manually trigger Github Actions workflow after another workflow successfully runs 从 Github 操作取消当前正在运行的工作流程 - Cancel current running workflow from Github Actions 手动调用 GitHub Actions 工作流并传递参数 - Invoke GitHub Actions workflow manually and pass parameters GitHub 发布操作创建的工作流触发器不起作用 - GitHub Actions on release created workflow trigger not working 未显示工作流程,因此我无法手动运行它(Github Actions) - Workflow is not shown so I cannot run it manually (Github Actions) GitHub 操作:必须具有管理员权限才能触发 workflow_dispatch? - GitHub Actions: Must have admin rights to trigger workflow_dispatch? Github 尽管计划应触发作业,但未触发操作工作流 - Github Actions workflow not triggered although schedule should trigger the job 当某些工作流本身发生变化时触发 GitHub 操作的工作流 - Trigger GitHub actions' workflow when some workflows themselves change 如何使用 github 操作从 Github 中的存储库 A 的工作流作业触发存储库 B(下游作业)中的工作流作业 - How to trigger a workflow job in repository B(downstream job) from workflow job of repository A in Github using github actions github 操作中的工作流描述 - Description for a workflow in github actions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM