diff --git a/.github/workflows/newrelic-release-tracking.yml b/.github/workflows/newrelic-release-tracking.yml new file mode 100644 index 00000000..c29c5394 --- /dev/null +++ b/.github/workflows/newrelic-release-tracking.yml @@ -0,0 +1,23 @@ +name: New Relic Release Tracking +on: + release: + types: [published] + branches: [main] + +jobs: + newrelic: + runs-on: ubuntu-latest + name: New Relic Release Tracking + steps: + # This step builds a var with the release tag value to use later + - name: Set Release Version from Tag + run: echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV + # This step creates a new Change Tracking Marker + - name: New Relic Application Deployment Marker + uses: newrelic/deployment-marker-action@v2.2.0 + with: + apiKey: ${{ secrets.NEW_RELIC_API_KEY }} + region: 'EU' + guid: ${{ secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID }} + version: '${{ env.RELEASE_VERSION }}' + user: '${{ github.actor }}'