mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-26 19:12:10 +00:00
Group log messages generated when provisioning Gradle
This commit is contained in:
parent
3390540145
commit
4264cda558
1 changed files with 8 additions and 0 deletions
|
@ -93,6 +93,14 @@ async function findGradleVersionDeclaration(
|
||||||
|
|
||||||
async function provisionGradle(
|
async function provisionGradle(
|
||||||
versionInfo: GradleVersionInfo
|
versionInfo: GradleVersionInfo
|
||||||
|
): Promise<string> {
|
||||||
|
return core.group(`Provision Gradle ${versionInfo.version}`, async () => {
|
||||||
|
return locateGradleAndDownloadIfRequired(versionInfo)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async function locateGradleAndDownloadIfRequired(
|
||||||
|
versionInfo: GradleVersionInfo
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const installsDir = path.join(os.homedir(), 'gradle-installations/installs')
|
const installsDir = path.join(os.homedir(), 'gradle-installations/installs')
|
||||||
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`)
|
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`)
|
||||||
|
|
Loading…
Reference in a new issue