Hi All,
I am using GitHub action to automate Postman test (newman run).
There are 2 steps in the action :
How do I pass arbitrary strings/parameters (with certain test response payload) from newman run to send email? I was thinking about using os environment variables, however I do not know how to set them in the newman run step. Is it possible to get them from the newman run using --env-var?
Regards.
Hey @sergekurian 
Welcome to the Postman Community! 
Would you be able to provide more details of what you have set up and what youβre trying to do?
If you could share your workflow yml, that would be useful too.
The --env-var
is only used to push external values into the Collection at runtime, to resolve a variable placeholder.
Hello @danny-dainton,
Thanks for your reply.
I end up setting global variables in request/test and exporting them into a file using newman run β¦ --export-globals=/tmp/globals
Then using jq to retrieve values form the json file and setting them as GitHub environment variables using >> $GITHUB_ENV
And finally retrieving GitHub environment variables using β${{ env.global_variable_name }}β
Regards