hello-world-javascript-action icon indicating copy to clipboard operation
hello-world-javascript-action copied to clipboard

Github Actions uses invalid environment variables.

Open shadycuz opened this issue 4 years ago • 2 comments

I'm trying to test this action locally before creating my own. However the action only echo's hello. When I try to set the environment variable:

export INPUT_WHO-TO-GREET=test
bash: export: `INPUT_WHO-TO-GREET=test': not a valid identifier

It fails? It seems Github Actions allows - in its Environment variables but bash doesn't.

shadycuz avatar May 20 '21 15:05 shadycuz

export INPUT_WHO-TO-GREET=test bash: export: `INPUT_WHO-TO-GREET=test': not a valid identifier

jonatanlr98 avatar Mar 24 '22 04:03 jonatanlr98

https://github.com/actions/hello-world-javascript-action/issues/22#issue-897004047

jonatanlr98 avatar Mar 24 '22 04:03 jonatanlr98

xport INPUT_WHO-TO-GREET=test bash: export: `INPUT_WHO-TO-GREET=test': not a valid identifier

dh-orko avatar May 31 '23 11:05 dh-orko

When testing this locally, it looks like @actions/core library is looking for the INPUT_WHO_TO_GREET environment variable instead. Hyphens are being replaced with underscores. Let me know if that helps!

ncalteen avatar Sep 15 '23 15:09 ncalteen

Hello! Closing this out for now, but if you're still running into any kind of issue please reopen and let me know! I will try to respond soon as I can :)

ncalteen avatar Nov 07 '23 14:11 ncalteen