File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,11 +196,11 @@ lane :generate_docs do
196
196
docs_destination_folder = "docs/#{ version_number } "
197
197
index_destination_path = "docs/index.html"
198
198
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
200
200
201
201
# using sh instead of fastlane commands because fastlane would run from the repo root
202
202
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
204
204
sh ( "git" , "commit" , "-m" , "Update documentation for #{ version_number } " )
205
205
sh ( "git" , "push" )
206
206
end
You can’t perform that action at this time.
0 commit comments