I have one workflow used to deploy, and at the end it runs this NR deployment marker Action
I run it alternately in two GHA "Environments" -- QA and PROD
each env receives a different NR GUID via an per-env environment variable
The first one, QA, works fine
For PROD runs of this workflow, I get this weird error
Error: level=fatal msg="Argument \"deployment\" has invalid value $deployment.\nIn field \"entityGuid\": Expected type \"EntityGuid!\", found \"MzQ........................................1NQ\\r\"."
The two Environments run the same workflow the same way; the only difference is the GUID. I have several debug steps to validate the values of all the required env vars and secrets and they look fine.
I tried running this action locally (i.e. on my workstation) following the docker build steps and env var scaffolding that seem to happen inside GHA and I never get this error. I also rebuilt locally with the --debug
flag but since i could not reproduce the error, that wasn't super helpful.
I browsed the NR CLI codebase as well (https://github.com/newrelic/newrelic-cli) trying to find what would be causing this error but nothing obvious comes up.
The second part of this error implies to me that there is an empty or shifted field somewhere. But I can't find it. I also don't really understand the first part of the error -- there is no field or variable named $deployment anywhere. There is a field $deploymenttype, but that doesn't match up.
Any help is appreciated. Is there a way to enable debugging on this action?