Skip to content

Commit

Permalink
fix: release token (NR-233241) (#191)
Browse files Browse the repository at this point in the history
fix: release token
  • Loading branch information
kilokang authored Apr 9, 2024
1 parent 1f89237 commit d15a074
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ env:
BOT_NAME: newrelic-coreint-bot
BOT_EMAIL: coreint-dev@newrelic.com

permissions:
contents: write

jobs:
test-release-needed:
name: Test if release is needed
Expand Down Expand Up @@ -51,6 +48,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.COREINT_BOT_TOKEN }}"
- name: Configure Git
run: |
git config user.name '${{ env.BOT_NAME }}'
git config user.email '${{ env.BOT_EMAIL }}'
- name: Generate YAML
uses: ./generate-yaml
with:
Expand All @@ -63,12 +66,6 @@ jobs:
id: version
uses: ./next-version

# Prepare to commit the Changelog.
- name: Configure Git
run: |
git config user.name '${{ env.BOT_NAME }}'
git config user.email '${{ env.BOT_EMAIL }}'
# Create changelog and commit it.
- name: Update the markdown
uses: ./update-markdown
Expand All @@ -87,7 +84,7 @@ jobs:
version: ${{ steps.version.outputs.next-version }}
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.COREINT_BOT_TOKEN }}
run: |
gh release create \
${{ steps.version.outputs.next-version }} \
Expand Down

0 comments on commit d15a074

Please # to comment.