generated from newrelic-experimental/java-instrumentation-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from newrelic-experimental/gsidhwani-nr-openso…
…urcebot Update release.yml for OpensourceBot
- Loading branch information
Showing
1 changed file
with
10 additions
and
5 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 |
---|---|---|
|
@@ -3,14 +3,19 @@ name: Build and Release (Manual Run JDK 21) v1.4 | |
on: | ||
workflow_dispatch: # This event allows manual triggering | ||
|
||
env: | ||
THIRD_PARTY_GIT_AUTHOR_EMAIL: [email protected] | ||
THIRD_PARTY_GIT_AUTHOR_NAME: nr-opensource-bot | ||
|
||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
|
||
|
@@ -109,7 +114,7 @@ jobs: | |
id: create_release | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }} | ||
script: | | ||
try { | ||
var changelog = ``; | ||
|
@@ -135,7 +140,7 @@ jobs: | |
- name: Upload Release Artifacts | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.OPENSOURCE_BOT_TOKEN }} | ||
with: | ||
asset_path: /tmp/to/${{ env.RELEASE_NAME}}${{ steps.set_tag.outputs.tag }}.zip | ||
asset_name: ${{ env.RELEASE_NAME}}${{ steps.set_tag.outputs.tag }}.zip | ||
|
@@ -146,7 +151,7 @@ jobs: | |
id: github_changelog | ||
uses: Helmisek/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
repo-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }} | ||
commit-types: "fix:Bug Fixes,feat:Features,doc:Documentation,build:Build Upgrades,BREAKING CHANGE:Enhancements" | ||
template-path: ".github/workflows/CHANGELOG.tpl.md" | ||
|
||
|
@@ -189,7 +194,7 @@ jobs: | |
id: update_release | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }} | ||
script: | | ||
try { | ||
|