Skip to content

Commit 89a3b4e

Browse files
committed
[CI] Fix snapshots path
1 parent f04bcb4 commit 89a3b4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fastlane/Fastfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ lane :test_ui do |options|
190190
next if png_files.empty?
191191

192192
# Discard all files apart from the snapshots
193-
png_files.each { |png| sh("git add #{png}") || true }
194-
sh('git restore .')
193+
Dir.chdir('..') do
194+
png_files.each { |png| sh("git add #{png}") || true }
195+
sh('git restore .')
196+
end
195197

196198
pr_create(
197199
title: '[CI] Snapshots',

0 commit comments

Comments
 (0)