From 4b6df42f6a11961f2ae478798d1a1003ef4bf52b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 11:39:56 -0400 Subject: [PATCH] chore(deps): update actions/github-script action to v6 (#30) * chore(deps): update actions/github-script action to v6 * fix: address breaking change on action API Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marc Cataford --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba8361d..b7647d8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,13 +112,13 @@ jobs: yarn netlify deploy --dir=dist > output.log echo "::set-output name=draft-url::$(grep 'Website Draft URL' output.log)" - name: Report - uses: actions/github-script@v2 + uses: actions/github-script@v6 env: DRAFT_URL: ${{ steps.preview-deploy.outputs.draft-url }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,