Update test.yml
This commit is contained in:
1 parent
3cf5585f30
commit
b91e616a30
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user