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)
| 56 | // prefix used within the activation job itself (references a step output). |
| 57 | // Returns empty string for non-workflow_call workflows. |
| 58 | func 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). |
no test coverage detected