MCPcopy Index your code
hub / github.com/rhysd/actionlint / parseWorkflowCallEventOutput

Method parseWorkflowCallEventOutput

parse.go:600–619  ·  view source on GitHub ↗

https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_calloutputs

(name *String, n *yaml.Node)

Source from the content-addressed store, hash-verified

598
599// https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_calloutputs
600func (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

Callers 1

Calls 4

parseMappingAtMethod · 0.95
parseStringMethod · 0.95
unexpectedKeyMethod · 0.95
errorfAtMethod · 0.95

Tested by

no test coverage detected