-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Actions support workflow dispatch event #28163
Actions support workflow dispatch event #28163
Conversation
Well, the problem is, you can specify some user-supplied fields for workflow_dispatch, have you handled that case as well? |
I plan to implement a version similar to github, providing a form that allows users to fill in the env parameters of the workflow run, and these parameters can be configured in yaml. Hopefully I can complete it |
170e929
to
b3b5544
Compare
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch |
2f14a4a
to
3bec7d1
Compare
I think it should be following now.
|
I changed it to checkbox because it is more common throughout Gitea UI |
Also, putting the titles of the input fields is equally common in Gitea UI. This long form is just an example and shouldn't normally contain so many fields. We can make it wider, however, just to look better. |
Yes, wider is better. |
Co-authored-by: Denys Konovalov <[email protected]>
Co-authored-by: Denys Konovalov <[email protected]>
Thanks so much @pangliang !!! |
Please send a docs PR to https://gitea.com/gitea/docs |
* giteaofficial/main: add CfTurnstileSitekey context data to all captcha templates (go-gitea#31874) Add tag name in the commits list (go-gitea#31082) Fix actions notify bug (go-gitea#31866) Actions support workflow dispatch event (go-gitea#28163)
This reverts commit 36232b6.
Why has this feature been removed from 1.22.2 in the end ? |
@FireGhost this is part of 1.23, wait for release. |
fix #23668
My plan:
actions.list
method, if workflow is selected and IsAdmin, check whether the on event containsworkflow_dispatch
. If so, display aRun workflow
button to allow the user to manually trigger the run.required
input cannot be empty/actions/run
, and anactions.Run
method to handleWorkflowDispatchPayload
struct to pass the Webhook event payload to the runner when triggered, this payload carries theinputs
values and other fields, doc: workflow_dispatch payloadOther PRs
Workflow.WorkflowDispatchConfig()
method still return non-nil when workflow_dispatch is not defined. I submitted a PR https://gitea.com/gitea/act/pulls/85 to fix it. Still waiting for them to process.Behavior should be same with github, but may cause confusion. Here's a quick reminder.
only
trigger a workflow run if the workflow file ison the default branch
.Use workflow from
selects another branch