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 8bd8b7e commit 515543c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/fetch-related-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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 Down Expand Up @@ -64,15 +64,15 @@ jobs:
if: steps.commit-changes.outputs.commit == 'true'
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
github_token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
branch: main

- 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
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
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 All @@ -83,15 +83,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 "required_pull_request_reviews" 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 @@ -130,7 +130,7 @@ jobs:
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 All @@ -152,15 +152,15 @@ jobs:
GIT_AUTHOR_EMAIL: ${{ env.BOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ env.BOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ env.BOT_EMAIL }}
GITHUB_TOKEN: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
run: npx semantic-release@^18.0.0

- name: Re-enable "required_pull_request_reviews" 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 515543c

Please sign in to comment.