lambda-action icon indicating copy to clipboard operation
lambda-action copied to clipboard

Environment Variables overwrite with-configuration

Open tsposato opened this issue 4 years ago • 2 comments

I have an environment variable (AWS_REGION) in my workflow which is overwriting your with: aws_region configuration. My expectation is that the with: aws_region configuration would overwrite the environment variable. I had to set an env: AWS_REGION: my-region in your step action to make it work.

Not sure if it is something you want to change but maybe worth mentioning it the README.md...

tsposato avatar Apr 09 '21 05:04 tsposato

@tsposato I don't know why you set AWS_REGION environment variable in the lambda action step.

appleboy avatar Apr 02 '23 08:04 appleboy

@appleboy is there a way to not have this overwrite env vars that are already set on the function?

jdicami avatar Jan 24 '24 17:01 jdicami

@jdicami I will take it.

appleboy avatar Apr 22 '24 06:04 appleboy

Please try v0.2.0 version. https://github.com/appleboy/lambda-action/releases/tag/v0.2.0

appleboy avatar Apr 22 '24 07:04 appleboy