File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 30
30
make tests | tee output.log
31
31
if grep -q -e "Error: A snapshot doesn't exist at" -e "Screenshot comparison failed" output.log; then
32
32
echo "Playwright tests failed due to a snapshot issue."
33
- echo "SNAPSHOT_DIFFERENCES=true" >> $GITHUB_ENV
34
33
exit 1
35
34
elif grep -q "failed" output.log; then
36
35
echo "Playwright tests failed due to a non-snapshot issue."
45
44
retention-days : 3
46
45
- name : Comment on PR with Playwright report
47
46
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
48
- if : ${{ failure() && env.SNAPSHOT_DIFFERENCES == 'true' }}
47
+ if : ${{ failure() }}
49
48
with :
50
49
script : |
51
50
const body = `### <span aria-hidden="true">❌</span> Playwright visual snapshot differences were detected.
You can’t perform that action at this time.
0 commit comments