Skip to content

Commit

Permalink
fix: replace token name used in action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tabathadelane committed Feb 28, 2024
1 parent 8b7fc26 commit 6afa298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/project-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
ref: main
fetch-depth: 0
token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}

- name: Install dependencies
run: cd .github/actions/sync-data && npm install
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
id: disable-branch-protection
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
github-token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.rest.repos.updateBranchProtection({
Expand All @@ -96,15 +96,15 @@ jobs:
if: steps.generate-notices.outputs.commit == 'true'
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
github_token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
branch: develop

- name: Re-enable branch protection
id: enable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
github-token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.rest.repos.updateBranchProtection({
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
id: disable-branch-protection
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
github-token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.rest.repos.updateBranchProtection({
Expand All @@ -169,15 +169,15 @@ jobs:
GIT_AUTHOR_EMAIL: 'opensource+bot@newrelic.com'
GIT_COMMITTER_NAME: 'nr-opensource-bot'
GIT_COMMITTER_EMAIL: 'opensource+bot@newrelic.com'
GITHUB_TOKEN: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
run: npx semantic-release@^18.0.0

- name: Re-enable branch protection
id: enable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
github-token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.rest.repos.updateBranchProtection({
Expand Down

0 comments on commit 6afa298

Please sign in to comment.