-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace token name used in action workflows
- Loading branch information
1 parent
8bd8b7e
commit 515543c
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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({ | ||
|
@@ -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({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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({ | ||
|
@@ -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({ | ||
|
@@ -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({ | ||
|
@@ -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({ | ||
|