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)
| 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. |
| 22 | func 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 |
no outgoing calls