[tests] Fix gh actions cron job to update next/turbo (#9453)

This token should run the tests automatically
This commit is contained in:
Steven
2023-02-15 12:11:54 -05:00
committed by GitHub
parent fc2f0b919b
commit c2f8a5990a
4 changed files with 9 additions and 5 deletions

View File

@@ -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: |

View File

@@ -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: |

View File

@@ -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,

View File

@@ -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,