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

Function buildTemplatableBoolEnvVar

pkg/workflow/templatables.go:264–266  ·  view source on GitHub ↗

buildTemplatableBoolEnvVar returns a YAML environment variable entry for a templatable boolean 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

262// embedded unquoted so that GitHub Actions can evaluate it at runtime;
263// otherwise the literal string is quoted. Returns nil if value is nil.
264func buildTemplatableBoolEnvVar(envVarName string, value *string) []string {
265 return buildTemplatableEnvVar(envVarName, value)
266}
267
268// AddTemplatableBool adds a templatable boolean field to the handler config.
269//

Calls 1

buildTemplatableEnvVarFunction · 0.85

Tested by

no test coverage detected