File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Agent Release Lambda Layers and K8s Init Containers
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ["Create Release"]
6
+ types :
7
+ - completed
8
+
9
+ jobs :
10
+ release-tags :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 2
16
+ - uses : actions/setup-node@v4
17
+ with :
18
+ node-version : ' lts/*'
19
+ - run : npm install
20
+ - run : |
21
+ git config user.name ${GITHUB_ACTOR}
22
+ git config user.email gh-actions-${GITHUB_ACTOR}@github.com
23
+ - id : get_tag
24
+ run : echo "latest_tag=$(cat package.json | jq .version)" >> $GITHUB_OUTPUT
25
+ - name : Create release tags for Lambda and K8s Init Containers
26
+ run : |
27
+ RELEASE_TITLE="New Relic Node Agent v${{ steps.get_tag.outputs.latest_tag }}.0"
28
+ RELEASE_TAG="v${{ steps.get_tag.outputs.latest_tag }}.0_nodejs"
29
+ RELEASE_NOTES="Automated release for [Node Agent v${{ steps.get_tag.outputs.latest_tag }}](https://github.com/newrelic/node-newrelic/releases/tag/v${{ steps.get_tag.outputs.latest_tag }})"
30
+ gh auth login --with-token <<< $GH_RELEASE_TOKEN
31
+ echo "newrelic/newrelic-lambda-layers - Releasing \"${RELEASE_TITLE}\" with tag ${RELEASE_TAG}"
32
+ gh release create "${RELEASE_TAG}" --title="${RELEASE_TITLE}" --repo=newrelic/newrelic-lambda-layers --notes="${RELEASE_NOTES}"
33
+ echo "newrelic/newrelic-agent-init-container - Releasing \"${RELEASE_TITLE}\" with tag ${RELEASE_TAG}"
34
+ gh release create "${RELEASE_TAG}" --title="${RELEASE_TITLE}" --repo=newrelic/newrelic-agent-init-container --notes="${RELEASE_NOTES}"
35
+ env :
36
+ GH_RELEASE_TOKEN : ${{ secrets.GH_RELEASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments