toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Update getInput to also support loading from underscored env vars

Open johnandersen777 opened this issue 1 year ago • 1 comments

Rather than just hyphens, eases calling from other contexts, such as when testing.

Closes: https://github.com/actions/toolkit/issues/629

johnandersen777 avatar Feb 12 '24 00:02 johnandersen777

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.

rindeal avatar Aug 31 '24 22:08 rindeal