We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3012ced commit 3265ac9Copy full SHA for 3265ac9
.github/workflows/actions/update-reference-screenshots/action.yml
@@ -34,6 +34,10 @@ runs:
34
run: |
35
git config user.name ionitron
36
git config user.email [email protected]
37
+
38
+ # This adds an empty entry for new
39
+ # screenshot files so we can track them with
40
+ # git diff
41
git add src/\*.png --force -N
42
43
if git diff --exit-code; then
@@ -42,6 +46,9 @@ runs:
46
echo -e "\033[1;31mMake sure you have pushed any code changes that would result in visual diffs.\033[0m"
47
exit 1
44
48
else
49
+ # This actually adds the contents
50
+ # of the screenshots (including new ones)
51
+ git add src/\*.png --force
45
52
git commit -m "chore(): add updated snapshots"
53
git push
54
fi
0 commit comments