Skip to content

Commit

Permalink
Merge pull request newrelic#1064 from newrelic/tabatha/update-token
Browse files Browse the repository at this point in the history
Replace token name used in action workflows
  • Loading branch information
tabathadelane authored Feb 28, 2024
2 parents 8b7fc26 + 6afa298 commit 330aeb4
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/[email protected]
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: '[email protected]'
GIT_COMMITTER_NAME: 'nr-opensource-bot'
GIT_COMMITTER_EMAIL: '[email protected]'
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 330aeb4

Please sign in to comment.