MCPcopy Create free account
hub / github.com/github/gh-aw / hasWorkflowCallTrigger

Function hasWorkflowCallTrigger

pkg/workflow/compiler_workflow_call.go:22–24  ·  view source on GitHub ↗

hasWorkflowCallTrigger checks if the on section contains a workflow_call trigger. Used to detect cross-repo reusable workflow usage for checkout and error handling.

(onSection string)

Source from the content-addressed store, hash-verified

20// hasWorkflowCallTrigger checks if the on section contains a workflow_call trigger.
21// Used to detect cross-repo reusable workflow usage for checkout and error handling.
22func hasWorkflowCallTrigger(onSection string) bool {
23 return strings.Contains(onSection, "workflow_call")
24}
25
26// generateArtifactPrefixStep creates a step that computes a stable, unique artifact name
27// prefix from a hash of the workflow_call inputs and the run attempt. This ensures artifact

Calls

no outgoing calls

Tested by 1