newman-action
newman-action copied to clipboard
`environment` does not accept a UUID
I am trying to run Newman in a GH Action using the same process as an example in the README:
- uses: actions/checkout@master
- uses: matt-ball/newman-action@master
with:
apiKey: ${{ secrets.postmanApiKey }}
collection: ${{ env.COLLECTION }}
environment: ${{ env.DEV }}
When I run the test in GH Actions I get the message:
Warning: Bad object passed in config!
Error: Newman run failed! Error: could not load environment
ENOENT: no such file or directory, open '<my UUID>'
Am I missing something?
I tried to use a URL in the environment variable but that returned the same message.
You are able to use a URL in the --environment variable in the CLI (https://github.com/postmanlabs/newman#using-newman-with-the-postman-api)

I see this working - can you share the env ID so I can check we're matching it properly? Feel free to change a single character with a like for like char if you're not wanting to share the exact ID