Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsidhwani-nr authored Jul 30, 2024
1 parent 3c1d639 commit 6dafd51
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Build and Release v1.2
on:
workflow_dispatch: # This event allows manual triggering

env:
THIRD_PARTY_GIT_AUTHOR_EMAIL: opensource+bot@newrelic.com
THIRD_PARTY_GIT_AUTHOR_NAME: nr-opensource-bot

jobs:
build-and-release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,7 +112,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 = ``;
Expand All @@ -134,7 +138,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
Expand All @@ -145,7 +149,7 @@ jobs:
id: github_changelog
uses: Helmisek/conventional-changelog-generator@v1.0.6-release
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"

Expand Down Expand Up @@ -188,7 +192,7 @@ jobs:
id: update_release
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
script: |
try {
Expand Down

0 comments on commit 6dafd51

Please sign in to comment.