File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 79
79
apiKey: ${{ secrets.NEW_RELIC_API_KEY }}
80
80
guid: ${{ secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID }}
81
81
version: "${{ github.ref }}-${{ github.sha }}"
82
+ commit: "${{ github.sha }}"
82
83
83
84
# Optional
84
85
changelog: "See https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md for details"
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ inputs:
24
24
changelog :
25
25
description : ' Change log string stored with the deployment. Default: <none>'
26
26
required : false
27
+ commit :
28
+ description : ' Commit for the deployment.'
29
+ required : false
27
30
deeplink :
28
31
description : ' Deep link referencing the deployment.'
29
32
required : false
48
51
NEW_RELIC_DEPLOYMENT_USER : ${{ inputs.user }}
49
52
NEW_RELIC_DEPLOYMENT_VERSION : ${{ inputs.version }}
50
53
NEW_RELIC_DEPLOYMENT_CHANGE_LOG : ${{ inputs.changelog }}
54
+ NEW_RELIC_DEPLOYMENT_COMMIT : ${{ inputs.commit}}
51
55
NEW_RELIC_DEPLOYMENT_DESCRIPTION : ${{ inputs.description }}
52
56
NEW_RELIC_DEPLOYMENT_DEEPLINK : ${{ inputs.deeplink }}
53
57
NEW_RELIC_DEPLOYMENT_TYPE : ${{ inputs.deploymenttype }}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ result=$(newrelic entity deployment create \
5
5
--user " ${NEW_RELIC_DEPLOYMENT_USER} " \
6
6
--version " ${NEW_RELIC_DEPLOYMENT_VERSION} " \
7
7
--changelog " ${NEW_RELIC_DEPLOYMENT_CHANGE_LOG} " \
8
+ --commit " ${NEW_RELIC_DEPLOYMENT_COMMIT} " \
8
9
--description " ${NEW_RELIC_DEPLOYMENT_DESCRIPTION} " \
9
10
--deepLink " ${NEW_RELIC_DEPLOYMENT_DEEPLINK} " \
10
11
--deploymentType " ${NEW_RELIC_DEPLOYMENT_TYPE} " \
You can’t perform that action at this time.
0 commit comments