Skip to content

Commit 4444626

Browse files
committed
Update snapshot recording lane
1 parent 3fbb045 commit 4444626

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fastlane/Fastfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ lane :test_ui do |options|
150150
png_files = git_status(ext: '.png').map { |_, png| png }.flatten
151151
next if png_files.empty?
152152

153+
# Discard all files apart from the snapshots
153154
png_files.each { |png| sh("git add #{png}") || true }
155+
sh('git restore .')
154156

155157
create_pr(
156158
title: '[CI] Snapshots',

0 commit comments

Comments
 (0)