Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I suggests adding a new endpoint to facilitate the dispatching of workflows. #31765

Closed
lunny opened this issue Aug 2, 2024 · 2 comments · Fixed by #33545
Closed

I suggests adding a new endpoint to facilitate the dispatching of workflows. #31765

lunny opened this issue Aug 2, 2024 · 2 comments · Fixed by #33545
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@lunny
Copy link
Member

lunny commented Aug 2, 2024

I suggests adding a new API endpoint to facilitate the dispatching of workflows. It empowers developers and teams to automate repetitive tasks and orchestrate complex workflows efficiently.

Create a workflow dispatch event

Payload:

POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
Content-Type: application/json
Authorization: Bearer <token>

{
  "ref": "main",
  "inputs": {
    "param1": "value1",
    "param2": "value2"
  }
}

Permissions:

  • "Actions" repository permissions (write)

Additional endpoints:

Originally posted by @bencurio in #28163 (comment)

@KN4CK3R
Copy link
Member

KN4CK3R commented Aug 2, 2024

Congratulations for the longest issue title 🎉

@lunny lunny changed the title I suggests adding a new [API endpoint](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event) to facilitate the dispatching of workflows. It empowers developers and teams to automate repetitive tasks and orchestrate complex workflows efficiently. I suggests adding a new a new endpoint to facilitate the dispatching of workflows. Aug 2, 2024
@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Aug 2, 2024
@rlataguerra
Copy link

I ran into a situation today where I need to run workflows from a repo that is different from the one containing the code

@lunny lunny changed the title I suggests adding a new a new endpoint to facilitate the dispatching of workflows. I suggests adding a new endpoint to facilitate the dispatching of workflows. Feb 6, 2025
@lunny lunny marked this as a duplicate of #32041 Feb 6, 2025
lunny added a commit that referenced this issue Feb 9, 2025
ref: #31765

---------

Signed-off-by: Bence Santha <git@santha.eu>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
wxiaoguang pushed a commit to wxiaoguang/gitea that referenced this issue Feb 10, 2025
ref: go-gitea#31765

---------

Signed-off-by: Bence Santha <git@santha.eu>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
wxiaoguang added a commit that referenced this issue Feb 10, 2025
Fix: #31765 (Re-open #32059)

---------

Co-authored-by: Bence Santha <git@santha.eu>
Co-authored-by: Bence Sántha <7604637+bencurio@users.noreply.github.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants