From 5a3a4fc807e436e75d5f7f844ecbdf6bd53e855e Mon Sep 17 00:00:00 2001 From: marv Date: Fri, 10 May 2024 22:38:34 -0700 Subject: Restore Playwright Success Comments on Update (#911) * Restore comment code * Add update-only flag --- .github/workflows/playwright_comment.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/playwright_comment.yml b/.github/workflows/playwright_comment.yml index a94700fe..ab0cd9c0 100644 --- a/.github/workflows/playwright_comment.yml +++ b/.github/workflows/playwright_comment.yml @@ -59,6 +59,17 @@ jobs: message: | :heavy_exclamation_mark: Could not fetch screenshots from master branch, so had nothing to make a visual comparison against; please check the "master-screenshots" step in the workflow run and rerun it before merging. + - name: "[Comment] Success: No visual differences introduced by this PR" + uses: mshick/add-pr-comment@dd126dd8c253650d181ad9538d8b4fa218fc31e8 # pin@v2 + if: steps.playwright.outputs.MASTER_SCREENSHOTS_OUTCOME != 'failure' && steps.playwright.outputs.FAILED == 0 + with: + issue: ${{ steps.source-run-info.outputs.pullRequestNumber }} + message: | + :heavy_check_mark: No visual differences introduced by this PR. + + View Playwright Report (note: open the "playwright-report" artifact) + update-only: true + - name: "[Comment] Warning: Visual differences introduced by this PR" uses: mshick/add-pr-comment@dd126dd8c253650d181ad9538d8b4fa218fc31e8 # pin@v2 if: steps.playwright.outputs.MASTER_SCREENSHOTS_OUTCOME != 'failure' && steps.playwright.outputs.FAILED != 0 -- cgit v1.2.3