toolkit
toolkit copied to clipboard
Update getInput to also support loading from underscored env vars
Rather than just hyphens, eases calling from other contexts, such as when testing.
Closes: https://github.com/actions/toolkit/issues/629
As mentioned in https://github.com/actions/toolkit/pull/1740, since the GHA Runner doesn't perform - to _ conversion when setting the INPUT_* environment variables for NodeJS actions, performing this conversion on the client side would prevent those inputs from being read. Any change in this behavior needs to be made solely in the runner code. This PR would break most code in existence.