From 6afa29852e0fac6a84c71c545f876c73377ae733 Mon Sep 17 00:00:00 2001 From: Tabatha Zeitke Date: Wed, 28 Feb 2024 11:39:29 -0600 Subject: [PATCH] fix: replace token name used in action workflows --- .github/workflows/project-stats.yml | 2 +- .github/workflows/release.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/project-stats.yml b/.github/workflows/project-stats.yml index 5f2b1fc7ea..af73cebbe4 100644 --- a/.github/workflows/project-stats.yml +++ b/.github/workflows/project-stats.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2608de2ff..385f9061e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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({ @@ -96,7 +96,7 @@ 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 @@ -104,7 +104,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({ @@ -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({ @@ -169,7 +169,7 @@ 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 @@ -177,7 +177,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({