mirror of
https://github.com/gradle/actions.git
synced 2026-10-16 19:57:12 +08:00
Protect RC provisioning from network problems and add logging
This commit is contained in:
1 parent
c8c53f54bb
commit
cb2742a00b
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -41,9 +41,10 @@ async function gradleReleaseCandidate(): Promise<string> {
|
||||
const versionInfo = await gradleVersionDeclaration(
|
||||
`${gradleVersionsBaseUrl}/release-candidate`
|
||||
)
|
||||
if (versionInfo) {
|
||||
if (versionInfo && versionInfo.version && versionInfo.downloadUrl) {
|
||||
return provisionGradle(versionInfo.version, versionInfo.downloadUrl)
|
||||
}
|
||||
core.info('No current release-candidate found, will fallback to current')
|
||||
return gradleCurrent()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user