Skip to content

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

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

Closed
lunny opened this issue Aug 2, 2024 · 5 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 · 5 comments · Fixed by #33545
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

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 <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: Christopher Homberger <[email protected]>
wxiaoguang pushed a commit to wxiaoguang/gitea that referenced this issue Feb 10, 2025
ref: go-gitea#31765

---------

Signed-off-by: Bence Santha <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: Christopher Homberger <[email protected]>
wxiaoguang added a commit that referenced this issue Feb 10, 2025
Fix: #31765 (Re-open #32059)

---------

Co-authored-by: Bence Santha <[email protected]>
Co-authored-by: Bence Sántha <[email protected]>
Co-authored-by: Christopher Homberger <[email protected]>
@NikoKS
Copy link

NikoKS commented Mar 17, 2025

Hello, help me understand the deployment cycle. The feature seems to be merged to main, but it's still not included in the latest release. When will this be included?

@eldiaboloz
Copy link
Contributor

From the milestone of the pull request it should be end of next month https://github.com/go-gitea/gitea/milestone/167

@wxiaoguang
Copy link
Contributor

Hello, help me understand the deployment cycle. The feature seems to be merged to main, but it's still not included in the latest release. When will this be included?

You can use the nightly builds, they contains that feature.

@lunny lunny added this to the 1.24.0 milestone Apr 6, 2025
@go-gitea go-gitea locked as resolved and limited conversation to collaborators May 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

6 participants