Skip to content

Commit

Permalink
chore: update actions/github-script to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Sep 13, 2023
1 parent 8d274f5 commit 58083a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ 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 }}`
comment = comment.replace(/%25/g, '%')
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,
Expand Down

0 comments on commit 58083a9

Please sign in to comment.