https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_calloutputs
(name *String, n *yaml.Node)
| 598 | |
| 599 | // https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_calloutputs |
| 600 | func (p *parser) parseWorkflowCallEventOutput(name *String, n *yaml.Node) *WorkflowCallEventOutput { |
| 601 | output := &WorkflowCallEventOutput{Name: name} |
| 602 | |
| 603 | for e := range p.parseMappingAt("output of workflow_call event", n, true, true) { |
| 604 | switch e.id { |
| 605 | case "description": |
| 606 | output.Description = p.parseString(e.val, true) |
| 607 | case "value": |
| 608 | output.Value = p.parseString(e.val, false) |
| 609 | default: |
| 610 | p.unexpectedKey(e.key, "outputs at workflow_call event", []string{"description", "value"}) |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | if output.Value == nil { |
| 615 | p.errorfAt(name.Pos, "\"value\" is missing at %q output of workflow_call event", name.Value) |
| 616 | } |
| 617 | |
| 618 | return output |
| 619 | } |
| 620 | |
| 621 | // - https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow-reuse-events |
| 622 | // - https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onworkflow_call |
no test coverage detected