caseycs/single-variable-mapper

Github action to simplify variable mapping by a specific key

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
keyKey to match the map argumentyes
mapPairs of regular expressions and resulting values, divided by separatoryes
export_toComma-separated list of targets to export variables to. Possible options: env, outputoutput
export_to_env_nameEnvironment variable name when export_to contains env""
separatorSeparator between regular expression and result value:
modeSpecify the behavior of getting the variable. Possible options: strict, fallback-to-original, fallback-to-defaultstrict
defaultDefault value, used when mode is fallback-to-default and not match was found""
allow_empty_mapDo not throw error when empty map was provided, requires mode to be other than strictfalse
namedescription
valueMapped value