Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added OpenSourceBot Token #25

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 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 (Manual Run) v1.3
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
Expand Down Expand Up @@ -109,7 +113,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 +139,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 +150,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"

Expand All @@ -172,8 +176,8 @@ jobs:

# Commit the updated CHANGELOG.md file
git add CHANGELOG.md
git config --local user.email "[email protected]"
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 +193,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
Loading