GitHub: Fix ccache archive downloading if there is none

Change-Id: I54fcac1a86c6f101469a695aa3610ae755354271
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2023-01-20 10:52:31 +01:00
parent dd3f5d3a6a
commit c6853ff32a

View File

@@ -458,6 +458,7 @@ jobs:
string(JSON artifacts_length LENGTH "${artifacts_json}" "artifacts")
math(EXPR artifacts_length "${artifacts_length} - 1")
if(${artifacts_length} GREATER_EQUAL 0)
foreach(idx RANGE 0 ${artifacts_length})
string(JSON artifact_js GET "${artifacts_json}" "artifacts" ${idx})
string(JSON name GET "${artifact_js}" "name")
@@ -483,6 +484,7 @@ jobs:
return()
endif()
endforeach()
endif()
endforeach()
- name: Build