Unverified Commit 890c1199 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update workflows for nextjs-bot (#81134)

This updates to use the new bot account specific for Next.js which we've
already been using for stale issues for a bit.
parent bd544da7
......@@ -45,7 +45,7 @@
],
"CI approved": [
{ "type": "user", "pattern": "SukkaW" },
{ "type": "user", "pattern": "vercel-release-bot" },
{ "type": "user", "pattern": "nextjs-bot" },
{ "type": "user", "pattern": "raunofreiberg" }
],
"created-by: Next.js team": [
......
......@@ -30,7 +30,7 @@ jobs:
- name: Set Git author
run: |
git config user.name "vercel-release-bot"
git config user.name "nextjs-bot"
git config user.email "infra+release@vercel.com"
- name: Setup node
......
......@@ -27,7 +27,7 @@ async function main() {
await exec(`node ${SCRIPT}`)
await exec(`git config user.name "vercel-release-bot"`)
await exec(`git config user.name "nextjs-bot"`)
await exec(`git config user.email "infra+release@vercel.com"`)
await exec(`git checkout -b ${branchName}`)
await exec(`git add -A`)
......@@ -76,7 +76,7 @@ async function main() {
console.log('Created pull request', pullRequest.url)
const previousPullRequests = pullRequests.filter(({ title, user }) => {
return title.includes(PR_TITLE) && user.login === 'vercel-release-bot'
return title.includes(PR_TITLE) && user.login === 'nextjs-bot'
})
if (previousPullRequests.length) {
......
......@@ -46,10 +46,10 @@ async function main() {
config.set('token', githubToken)
await execa(
`git remote set-url origin https://vercel-release-bot:${githubToken}@github.com/vercel/next.js.git`,
`git remote set-url origin https://nextjs-bot:${githubToken}@github.com/vercel/next.js.git`,
{ stdio: 'inherit', shell: true }
)
await execa(`git config user.name "vercel-release-bot"`, {
await execa(`git config user.name "nextjs-bot"`, {
stdio: 'inherit',
shell: true,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment