summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarv <rotrobmin@gmail.com>2024-05-10 22:38:34 -0700
committerGitHub <noreply@github.com>2024-05-11 05:38:34 +0000
commit5a3a4fc807e436e75d5f7f844ecbdf6bd53e855e (patch)
treed02f36cf6cf64a766ad4628c3749fa45fd64220f
parent2bcb0bccc251722b2eff8a0d07e02bca052fc2e1 (diff)
Restore Playwright Success Comments on Update (#911)
* Restore comment code * Add update-only flag
-rw-r--r--.github/workflows/playwright_comment.yml11
1 files changed, 11 insertions, 0 deletions
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.
+
+ <a href="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}#artifacts">View Playwright Report</a> (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