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

Closed
opened 2025-11-02 10:39:49 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @lunny on GitHub (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 https://github.com/go-gitea/gitea/issues/28163#issuecomment-2202120215

Originally created by @lunny on GitHub (Aug 2, 2024). 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. #### [Create a workflow dispatch event](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event) Payload: ```http 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: - [Enable workflow (`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`)](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow) - [Disable workflow (`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`)](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#disable-a-workflow) - [Get a workflow (`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`)](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#get-a-workflow) - [Get workflow usage (`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`)](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#get-workflow-usage) - [List repository workflows (`GET /repos/{owner}/{repo}/actions/workflows`)](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows) _Originally posted by @bencurio in https://github.com/go-gitea/gitea/issues/28163#issuecomment-2202120215_
GiteaMirror added the type/proposal label 2025-11-02 10:39:49 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 2, 2024):

Congratulations for the longest issue title 🎉

@KN4CK3R commented on GitHub (Aug 2, 2024): Congratulations for the longest issue title 🎉
Author
Owner

@rlataguerra commented on GitHub (Jan 18, 2025):

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

@rlataguerra commented on GitHub (Jan 18, 2025): I ran into a situation today where I need to run workflows from a repo that is different from the one containing the code
Author
Owner

@NikoKS commented on GitHub (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?

@NikoKS commented on GitHub (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?
Author
Owner

@eldiaboloz commented on GitHub (Mar 17, 2025):

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

@eldiaboloz commented on GitHub (Mar 17, 2025): From the milestone of the pull request it should be end of next month [https://github.com/go-gitea/gitea/milestone/167](https://github.com/go-gitea/gitea/milestone/167)
Author
Owner

@wxiaoguang commented on GitHub (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?

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

@wxiaoguang commented on GitHub (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? You can use the nightly builds, they contains that feature. * https://dl.gitea.com/gitea/main-nightly/ * https://hub.docker.com/r/gitea/gitea/tags?name=nightly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13358