@@ -49,7 +49,7 @@ permissions:
4949 contents : read
5050 packages : read
5151 id-token : write
52-
52+
5353env :
5454 DOTNET_NOLOGO : true
5555
@@ -72,16 +72,16 @@ jobs:
7272 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7373 with :
7474 fetch-depth : 0
75-
75+
7676 - name : Get Release Version and Run ID
7777 if : ${{ inputs.get-version-automatically }}
7878 id : step1
7979 run : |
8080 # Get the commit sha for the most recent release
8181 COMMIT_SHA=$(git rev-list -n 1 "$(gh release list --limit 1 | awk '{ print $1 }')")
82- if [[ -z "$COMMIT_SHA" ]]; then
82+ if [[ -z "$COMMIT_SHA" ]]; then
8383 echo "::error::Unable to find SHA of most recent release"
84- exit 1
84+ exit 1
8585 fi
8686 echo "Found commit sha: $COMMIT_SHA"
8787
@@ -149,7 +149,7 @@ jobs:
149149 fi
150150 env :
151151 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
152-
152+
153153 get-external-artifacts :
154154 name : Get and Publish Deploy Artifacts Locally
155155 needs : get-release-info
@@ -169,7 +169,7 @@ jobs:
169169 name : deploy-artifacts
170170 path : ${{ github.workspace }}
171171 repository : ${{ github.repository }}
172-
172+
173173 - name : Upload Deploy Artifacts Locally
174174 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
175175 with :
@@ -270,14 +270,14 @@ jobs:
270270 with :
271271 name : deploy-artifacts
272272 path : ${{ github.workspace }}\working_dir
273-
273+
274274 # Get a short-lived NuGet API key
275275 - name : NuGet login (OIDC → temp API key)
276276 uses : NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544 # v1.1.0
277277 id : login
278278 with :
279279 user : ${{ secrets.NUGET_TRUSTED_PUBLISH_POLICY_USER }}
280-
280+
281281 - name : Deploy Agent to Nuget
282282 run : |
283283 $packageName = Get-ChildItem ${{ github.workspace }}\working_dir\NugetAgent\NewRelic.Agent.*.nupkg -Name
@@ -415,7 +415,7 @@ jobs:
415415 echo "AGENT_VERSION=$AGENT_VERSION" >> docker.env
416416 echo "ACTION=release" >> docker.env
417417 if [ "${{ inputs.linux-deploy-to-production }}" == "true" ] ; then
418- # We're actually deploying to production (apt.newrelic.com and yum.newrelic.com)
418+ # We're actually deploying to production (apt.newrelic.com and yum.newrelic.com)
419419 echo "S3_BUCKET=${{ secrets.PROD_MAIN_S3 }}" >> docker.env
420420 echo "AWS_ACCESS_KEY_ID=${{ secrets.LINUX_AWS_ACCESS_KEY_ID }}" >> docker.env
421421 echo "AWS_SECRET_ACCESS_KEY=${{ secrets.LINUX_AWS_SECRET_ACCESS_KEY }}" >> docker.env
@@ -484,3 +484,13 @@ jobs:
484484 wait_for_apt_and_yum : true
485485 secrets : inherit
486486
487+ agent-metadata :
488+ permissions :
489+ contents : read
490+ needs : [post-deploy]
491+ if : ${{ inputs.post-deploy }}
492+ name : Run Agent Metadata Workflow
493+ uses : newrelic/newrelic-dotnet-agent/.github/workflows/agent_metadata.yml@main
494+ with :
495+ version : ${{ needs.get-release-info.outputs.release_version }}
496+ secrets : inherit
0 commit comments