Github Actions uses invalid environment variables.
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.
export INPUT_WHO-TO-GREET=test bash: export: `INPUT_WHO-TO-GREET=test': not a valid identifier
https://github.com/actions/hello-world-javascript-action/issues/22#issue-897004047
xport INPUT_WHO-TO-GREET=test bash: export: `INPUT_WHO-TO-GREET=test': not a valid identifier
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!
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 :)