Skip to content

Commit 1ba6eaa

Browse files
authored
Fix generate_docs (#943)
1 parent 8b79edc commit 1ba6eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastlane/Fastfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ lane :generate_docs do
196196
docs_destination_folder = "docs/#{version_number}"
197197
index_destination_path = "docs/index.html"
198198
FileUtils.cp_r docs_generation_folder, docs_destination_folder
199-
FileUtils.cp docs_index_path, index_destination_path unless is_hotfix
199+
FileUtils.cp docs_index_path, index_destination_path if should_update_index
200200

201201
# using sh instead of fastlane commands because fastlane would run from the repo root
202202
sh("git", "add", docs_destination_folder)
203-
sh("git", "add", index_destination_path) unless is_hotfix
203+
sh("git", "add", index_destination_path) if should_update_index
204204
sh("git", "commit", "-m", "Update documentation for #{version_number}")
205205
sh("git", "push")
206206
end

0 commit comments

Comments
 (0)