newrelic / deployment-marker-action

Github Action for recording a Deployment Marker in New Relic
https://github.com/marketplace/actions/new-relic-application-deployment-marker
Apache License 2.0
58 stars 23 forks source link

Action is not working for manual run(workflow_dispatch) actions #50

Open rrbadam opened 9 months ago

rrbadam commented 9 months ago

We have created a git action of type workflow_dispatch and integrated deployment-marker-action. When executing it manually it is not working, but works fine with release workflow.

Error we are getting:

level=fatal msg="could not initialize New Relic client, make sure your profile is configured with newrelic profile configure"

Please confirm if this workflow is designed for only
release: types: [published]

sanderblue commented 9 months ago

Hi @rrbadam, this GitHub Action should work just fine with workflow_dispatch (just confirmed it works). Assuming you have your GitHub secrets set up properly, I'm not sure why it would work for your release workflow and then not work for the manual trigger in your case. But for some reason it sounds like it's not getting the inputs it needs, specifically your New Relic API key in this scenario.