From b7ba8927a20657989d7627f10f7fbb9e3f74fccd Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Wed, 23 Aug 2023 21:10:01 +0300 Subject: [PATCH] fix(ci): use github script v6 & `rest` namespace --- .github/workflows/ui-tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ui-tests.yaml b/.github/workflows/ui-tests.yaml index 55e9383f..c056df68 100644 --- a/.github/workflows/ui-tests.yaml +++ b/.github/workflows/ui-tests.yaml @@ -96,13 +96,13 @@ jobs: - name: Deploy to Vercel run: yarn vercel deploy --prebuilt --token ${{ secrets.vercel_token }} > _vercel-deployment-url - name: Comment on PR with deployment URL - uses: actions/github-script@v4 + uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs'); const deploymentUrl = fs.readFileSync('_vercel-deployment-url', 'utf8'); - github.issues.createComment({ + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,