mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-20 03:11:35 +02:00
add run_number to optional workflow dispatch data
This commit is contained in:
parent
bec2659bfb
commit
7b3ff7c7e7
2 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,8 @@ type DispatchWorkflowOption struct {
|
|||
type DispatchWorkflowRun struct {
|
||||
// the workflow run id
|
||||
ID int64 `json:"id"`
|
||||
// a unique number for each run of a repository
|
||||
RunNumber int64 `json:"run_number"`
|
||||
// the jobs name
|
||||
Jobs []string `json:"jobs"`
|
||||
}
|
||||
|
|
|
@ -681,8 +681,9 @@ func DispatchWorkflow(ctx *context.APIContext) {
|
|||
}
|
||||
|
||||
workflowRun := &api.DispatchWorkflowRun{
|
||||
ID: run.ID,
|
||||
Jobs: jobs,
|
||||
ID: run.ID,
|
||||
RunNumber: run.Index,
|
||||
Jobs: jobs,
|
||||
}
|
||||
|
||||
if opt.ReturnRunInfo {
|
||||
|
|
Loading…
Add table
Reference in a new issue