Skip to content

Commit 3265ac9

Browse files
committed
add the actual file
1 parent 3012ced commit 3265ac9

File tree

1 file changed

+7
-0
lines changed
  • .github/workflows/actions/update-reference-screenshots

1 file changed

+7
-0
lines changed

.github/workflows/actions/update-reference-screenshots/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ runs:
3434
run: |
3535
git config user.name ionitron
3636
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
3741
git add src/\*.png --force -N
3842
3943
if git diff --exit-code; then
@@ -42,6 +46,9 @@ runs:
4246
echo -e "\033[1;31mMake sure you have pushed any code changes that would result in visual diffs.\033[0m"
4347
exit 1
4448
else
49+
# This actually adds the contents
50+
# of the screenshots (including new ones)
51+
git add src/\*.png --force
4552
git commit -m "chore(): add updated snapshots"
4653
git push
4754
fi

0 commit comments

Comments
 (0)