From 58083a933c40782ae0bd6576c2c7a4054fbd70e2 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:54:53 +0200 Subject: [PATCH] chore: update `actions/github-script` to `v6` --- .github/workflows/size.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index d5e35b0f..72870db2 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -55,7 +55,7 @@ jobs: COMMENT="${COMMENT//$'\n'/'%0A'}" COMMENT="${COMMENT//$'\r'/'%0D'}" echo "COMMENT=$COMMENT" >> $GITHUB_ENV - - uses: actions/github-script@v3 + - uses: actions/github-script@v6 with: script: | var comment = `${{ env.COMMENT }}` @@ -63,7 +63,7 @@ jobs: comment = comment.replace(/%0A/g, '\n') comment = comment.replace(/%0D/g, '\r') comment = "```" + comment + "```" - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,