Skip to content

Commit

Permalink
Merge pull request #8 from newrelic-experimental/gsidhwani-nr-openSou…
Browse files Browse the repository at this point in the history
…rceBot

feat: Update release.yml for openSourceBot
  • Loading branch information
dhilpipre authored Nov 26, 2024
2 parents 6d4ac4b + 1212263 commit 72ae9a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build and Release (Manual Run) v1.3
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 @@ -109,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 @@ -135,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 @@ -146,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 All @@ -172,8 +175,8 @@ jobs:
# Commit the updated CHANGELOG.md file
git add CHANGELOG.md
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config user.email "${{ env.THIRD_PARTY_GIT_AUTHOR_EMAIL }}"
git config user.name "${{ env.THIRD_PARTY_GIT_AUTHOR_NAME }}"
git commit -m "Update Changelog for Release [skip ci]"
# Push the changes to the remote repository
Expand All @@ -189,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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version: [v1.2.1](https://github.com/newrelic-experimental/newrelic-java-atomikos/releases/tag/v1.2.1) | Created: 2024-11-26



## Version: [v1.1.1](https://github.com/newrelic-experimental/newrelic-java-atomikos/releases/tag/v1.1.1) | Created: 2024-07-01
### Bug Fixes
- Updated Gradle and fixed verifyInstrumentation
Expand Down

0 comments on commit 72ae9a6

Please sign in to comment.