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

Function experimentArtifactUploadName

pkg/workflow/compiler_experiments.go:533–541  ·  view source on GitHub ↗

experimentArtifactUploadName returns the artifact name used when uploading the experiment artifact from the activation job. For workflow_call workflows the runtime prefix expression is prepended. For regular workflows the sanitized workflow ID is used as a prefix so the artifact name uniquely identi

(data *WorkflowData, sanitizedID string)

Source from the content-addressed store, hash-verified

531// An empty sanitizedID falls back to the base name for defensive compatibility; in practice
532// the compiler always sets a non-empty WorkflowID before this function is called.
533func experimentArtifactUploadName(data *WorkflowData, sanitizedID string) string {
534 if hasWorkflowCallTrigger(data.On) {
535 return artifactPrefixExprForActivationJob(data) + constants.ExperimentArtifactName
536 }
537 if sanitizedID == "" {
538 return constants.ExperimentArtifactName
539 }
540 return sanitizedID + "-" + constants.ExperimentArtifactName
541}
542
543// experimentArtifactDownloadName returns the artifact name used when downloading the experiment
544// artifact from a downstream job.

Calls 2

hasWorkflowCallTriggerFunction · 0.85

Tested by

no test coverage detected