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
61 stars 24 forks source link

FR - add `commit` field for inputs #25

Closed thezackm closed 1 year ago

thezackm commented 1 year ago

The new GraphQL API includes a commit field as an optional attribute to be sent on mutations. The intention of this field is to hold the Commit SHA for a marker.

This FR is to request support for this field as an input using the default GITHUB_SHA variable:

jobs:
  newrelic:
    runs-on: ubuntu-latest
    steps:
      - name: Change Tracking Marker
        uses: newrelic/deployment-marker-action@v2.0.0
        with:
          commit: "${{ github.sha }}"
          ...
sanderblue commented 1 year ago

Fixed in #27