mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 04:22:01 +00:00
[tests] Fix gh actions cron job to update next/turbo (#9453)
This token should run the tests automatically
This commit is contained in:
3
.github/workflows/cron-update-next.yml
vendored
3
.github/workflows/cron-update-next.yml
vendored
@@ -16,10 +16,13 @@ jobs:
|
||||
# 0 means fetch all commits so we can commit and push in the script below
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Enable corepack
|
||||
run: corepack enable pnpm
|
||||
- name: Create Pull Request
|
||||
uses: actions/github-script@v6
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
|
||||
# See https://github.com/actions/github-script#run-a-separate-file-with-an-async-function
|
||||
with:
|
||||
script: |
|
||||
|
||||
5
.github/workflows/cron-update-turbo.yml
vendored
5
.github/workflows/cron-update-turbo.yml
vendored
@@ -16,12 +16,13 @@ jobs:
|
||||
# 0 means fetch all commits so we can commit and push in the script below
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: install pnpm@7.26.0
|
||||
run: npm i -g pnpm@7.26.0
|
||||
- name: Enable corepack
|
||||
run: corepack enable pnpm
|
||||
- name: Create Pull Request
|
||||
uses: actions/github-script@v6
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
|
||||
# See https://github.com/actions/github-script#run-a-separate-file-with-an-async-function
|
||||
with:
|
||||
script: |
|
||||
|
||||
4
utils/update-next.js
vendored
4
utils/update-next.js
vendored
@@ -58,8 +58,8 @@ module.exports = async ({ github, context }) => {
|
||||
pull_number: pr.data.number,
|
||||
reviewers: ['ijjk', 'styfle'],
|
||||
});
|
||||
|
||||
github.rest.issues.addLabels({
|
||||
|
||||
await github.rest.issues.addLabels({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: pr.data.number,
|
||||
|
||||
2
utils/update-turbo.js
vendored
2
utils/update-turbo.js
vendored
@@ -54,7 +54,7 @@ module.exports = async ({ github, context }) => {
|
||||
body: `This auto-generated PR updates Turbo to version ${newVersion}`,
|
||||
});
|
||||
|
||||
github.rest.issues.addLabels({
|
||||
await github.rest.issues.addLabels({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: pr.data.number,
|
||||
|
||||
Reference in New Issue
Block a user