i'm using newman in github actions workflow to run a postman collection. i need the run results no matter if any number of requests fail. but the github action fails and i can't get them.
- name: Collection_UID
id: collection_UID
run: echo ::set-output name=uid::$(curl https://api.getpostman.com/collections?apikey=${{ secrets.POSTMAN_API_KEY }} | jq -r '.collections[] | select(.name == "MyCollection").uid')
- name: Run Newman
id: run-newman
run: newman run "https://api.postman.com/collections/${{ steps.collection_UID.outputs.uid }}?apikey=${{ secrets.POSTMAN_API_KEY }}" -r 'cli,junit' --reporter-junit-export mycollection.xml
/
# failure detail
01. TypeError Check if FAILED_POSTMAN_REQUEST_NAME is correct
Cannot read properties of undefined (reading '0')
at assertion:0 in test-script
Error: Process completed with exit code 1.
is there a way to prevent the github action from failing when the postman request fails, and even add it to the export file?
thanks