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

Function artifactPrefixExprForActivationJob

pkg/workflow/compiler_workflow_call.go:58–63  ·  view source on GitHub ↗

artifactPrefixExprForActivationJob returns the GitHub Actions expression for the artifact prefix used within the activation job itself (references a step output). Returns empty string for non-workflow_call workflows.

(data *WorkflowData)

Source from the content-addressed store, hash-verified

56// prefix used within the activation job itself (references a step output).
57// Returns empty string for non-workflow_call workflows.
58func artifactPrefixExprForActivationJob(data *WorkflowData) string {
59 if !hasWorkflowCallTrigger(data.On) {
60 return ""
61 }
62 return "${{ steps.artifact-prefix.outputs.prefix }}"
63}
64
65// artifactPrefixExprForDownstreamJob returns the GitHub Actions expression for the artifact
66// prefix used in jobs that depend on the activation job (references an activation job output).

Calls 1

hasWorkflowCallTriggerFunction · 0.85

Tested by

no test coverage detected