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

Function getActionInput

actions/setup/js/action_input_utils.cjs:19–22  ·  view source on GitHub ↗

* Read a GitHub Actions input value, handling both the standard underscore form * (INPUT_ ) and the hyphen form (INPUT_ ) preserved by some runner versions. * * GitHub Actions converts input names to INPUT_ by default, but * some runner versions preserve the original

(name)

Source from the content-addressed store, hash-verified

17 * @returns {string} Trimmed input value, or "" if not set.
18 */
19function getActionInput(name) {
20 const hyphenName = name.replace(/_/g, "-");
21 return (process.env[`INPUT_${name}`] || process.env[`INPUT_${hyphenName}`] || "").trim();
22}
23
24module.exports = { getActionInput };

Callers 4

index.jsFile · 0.85
runFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected