Skip to content

Commit

Permalink
ci: update github token (#50216)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored May 23, 2023
1 parent 03d6dcc commit ad79fed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trigger_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- major

secrets:
RELEASE_BOT_TOKEN:
RELEASE_BOT_GITHUB_TOKEN:
required: true

name: Trigger Release
Expand Down Expand Up @@ -78,4 +78,4 @@ jobs:

- run: node ./scripts/start-release.js --release-type ${{ github.event.inputs.releaseType }} --semver-type ${{ github.event.inputs.semverType }}
env:
RELEASE_BOT_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
RELEASE_BOT_GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions scripts/start-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ async function main() {
return
}

const githubToken = process.env.RELEASE_BOT_TOKEN
const githubToken = process.env.RELEASE_BOT_GITHUB_TOKEN

if (!githubToken) {
console.log(`Missing RELEASE_BOT_TOKEN`)
console.log(`Missing RELEASE_BOT_GITHUB_TOKEN`)
return
}

Expand Down

0 comments on commit ad79fed

Please sign in to comment.