diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1d810c5..422619c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,14 +82,14 @@ jobs: echo "SCREENSHOT_URL: ${SCREENSHOT_URL}" || true - name: Post Screenshot URL if: env.SCREENSHOT_URL != '' - uses: actions/github-script@v5 + uses: actions/github-script@4 with: script: | const prNumber = context.payload.pull_request.number; const screenshotURL = process.env.SCREENSHOT_URL; const commentBody = `Screenshot URL: ${screenshotURL}`; - github.issues.createComment({ + await github.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: prNumber,