artifactPrefixExprForDownstreamJob returns the GitHub Actions expression for the artifact prefix used in jobs that depend on the activation job (references an activation job output). Returns empty string for non-workflow_call workflows.
(data *WorkflowData)
| 66 | // prefix used in jobs that depend on the activation job (references an activation job output). |
| 67 | // Returns empty string for non-workflow_call workflows. |
| 68 | func artifactPrefixExprForDownstreamJob(data *WorkflowData) string { |
| 69 | if !hasWorkflowCallTrigger(data.On) { |
| 70 | return "" |
| 71 | } |
| 72 | return "${{ needs.activation.outputs.artifact_prefix }}" |
| 73 | } |
| 74 | |
| 75 | // artifactPrefixExprForAgentDownstreamJob returns the expression for the artifact prefix in |
| 76 | // jobs that only directly depend on the agent job (not the activation job). |
no test coverage detected