Skip to content

Commit

Permalink
Logging lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Aug 26, 2024
1 parent 74feabb commit 888474c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sources/src/execution/provision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ async function findGradleVersionOnPath(versionInfo: GradleVersionInfo): Promise<
const gradleExecutable = await which('gradle', {nothrow: true})
if (gradleExecutable) {
const output = await exec.getExecOutput(gradleExecutable, ['-v'], {silent: true})
if (output.stdout.includes(`Gradle ${versionInfo.version}`)) {
const outputLines = output.stdout.split('\n')
// Print each of the lines in outputLines
for (const line of outputLines) {
core.info(`Got output line: ${line}`)
}

if (outputLines.includes(`Gradle ${versionInfo.version}`)) {
return gradleExecutable
}
}
Expand Down

0 comments on commit 888474c

Please sign in to comment.