Update test.yml

This commit is contained in:
probonopd authored and GitHub committed 2023-06-18 13:38:58 +02:00
1 parent 3cf5585f30
commit b91e616a30
1 file changed
+2 -2
+2 -2
View File
@@ -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,