Open TWiStErRob opened 2 months ago
This line
https://github.com/newrelic/deployment-marker-action/blob/60142df2a3f5c23d3294486f474299b8f490cd90/action.yaml#L44-L46
promises a GitHub Action output (which is the standard way of moving information out of an action), and expected to be steps.my-step-id.outputs.deploymentId, but this line
steps.my-step-id.outputs.deploymentId
https://github.com/newrelic/deployment-marker-action/blob/60142df2a3f5c23d3294486f474299b8f490cd90/entrypoint.sh#L23
sets an env var. The README.md shows the env var usage:
https://github.com/newrelic/deployment-marker-action/blob/60142df2a3f5c23d3294486f474299b8f490cd90/README.md#L129-L131
but it's not a GHA native/idiomatic way of passing outputs.
Please update the action so that it does not pollute the global env namespace with an un-prefixed env var.
-echo "deploymentId=$deploymentId" >> $GITHUB_ENV +echo "deploymentId=$deploymentId" >> "${GITHUB_OUTPUT}"
Agreed, this should be updated. Thanks for reaching out 🙂
This line
https://github.com/newrelic/deployment-marker-action/blob/60142df2a3f5c23d3294486f474299b8f490cd90/action.yaml#L44-L46
promises a GitHub Action output (which is the standard way of moving information out of an action), and expected to be
steps.my-step-id.outputs.deploymentId
, but this linehttps://github.com/newrelic/deployment-marker-action/blob/60142df2a3f5c23d3294486f474299b8f490cd90/entrypoint.sh#L23
sets an env var. The README.md shows the env var usage:
https://github.com/newrelic/deployment-marker-action/blob/60142df2a3f5c23d3294486f474299b8f490cd90/README.md#L129-L131
but it's not a GHA native/idiomatic way of passing outputs.
Please update the action so that it does not pollute the global env namespace with an un-prefixed env var.