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

Function buildTemplatableIntEnvVar

pkg/workflow/templatables.go:296–298  ·  view source on GitHub ↗

buildTemplatableIntEnvVar returns a YAML environment variable entry for a templatable integer field. If value is a GitHub Actions expression it is embedded unquoted so that GitHub Actions can evaluate it at runtime; otherwise the literal string is quoted. Returns nil if value is nil.

(envVarName string, value *string)

Source from the content-addressed store, hash-verified

294// embedded unquoted so that GitHub Actions can evaluate it at runtime;
295// otherwise the literal string is quoted. Returns nil if value is nil.
296func buildTemplatableIntEnvVar(envVarName string, value *string) []string {
297 return buildTemplatableEnvVar(envVarName, value)
298}
299
300// AddTemplatableInt adds a templatable integer field to the handler config.
301//

Calls 1

buildTemplatableEnvVarFunction · 0.85

Tested by

no test coverage detected