Skip to content

Commit 4099119

Browse files
committed
Uodate workflow to not fail if there is no theme preview
1 parent 1d915cd commit 4099119

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/themes-screenshot-on-pr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ jobs:
5555
cp screencap.png "screenshot-$theme.png"
5656

5757
# Compare with original theme preview to detect changes, generate a diff
58-
python3 tools/compare-images.py "screenshot-$theme.png" "$dir/preview.png" "diff-$theme.png"
59-
if [ -f "diff-$theme.png" ]; then
60-
echo "::warning::$theme theme rendering has changed, check if it is intentional or a side-effect. A diff is included in the job artifacts."
58+
if [ -f "$dir/preview.png" ]; then
59+
python3 tools/compare-images.py "screenshot-$theme.png" "$dir/preview.png" "diff-$theme.png"
60+
if [ -f "diff-$theme.png" ]; then
61+
echo "::warning::$theme theme rendering has changed, check if it is intentional or a side-effect. A diff is included in the job artifacts."
62+
fi
6163
fi
6264
fi
6365
done

0 commit comments

Comments
 (0)