mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-01-30 04:00:52 +08:00
Group log messages generated when provisioning Gradle
This commit is contained in:
parent
3390540145
commit
4264cda558
@ -93,6 +93,14 @@ async function findGradleVersionDeclaration(
|
||||
|
||||
async function provisionGradle(
|
||||
versionInfo: GradleVersionInfo
|
||||
): Promise<string> {
|
||||
return core.group(`Provision Gradle ${versionInfo.version}`, async () => {
|
||||
return locateGradleAndDownloadIfRequired(versionInfo)
|
||||
})
|
||||
}
|
||||
|
||||
async function locateGradleAndDownloadIfRequired(
|
||||
versionInfo: GradleVersionInfo
|
||||
): Promise<string> {
|
||||
const installsDir = path.join(os.homedir(), 'gradle-installations/installs')
|
||||
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user