-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
287a9cd
commit 212254a
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Record Deployment And Add New Relic Monitor | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- prod | ||
tags: | ||
- v1.* | ||
|
||
jobs: | ||
newrelic: | ||
runs-on: ubuntu-latest | ||
name: New Relic Record Deployment | ||
steps: | ||
# This step builds a var with the sha value to use later | ||
- name: Get Git Short Commit | ||
id: git-short | ||
run: | | ||
echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | ||
# This step creates a new Change Tracking Marker | ||
- name: Add New Relic Application Deployment Marker | ||
uses: newrelic/[email protected] | ||
with: | ||
apiKey: ${{ secrets.NEW_RELIC_API_KEY }} | ||
guid: ${{ secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID }} | ||
version: "${{ steps.git-short.outputs.short_sha }}" | ||
user: "${{ github.actor }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters