mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 08:46:10 +02:00
Remove 'gradle-executable' input param
This commit is contained in:
parent
345641a213
commit
a36d6f820b
5 changed files with 1 additions and 21 deletions
|
@ -28,7 +28,7 @@ function validateGradleWrapper(buildRootDirectory: string): void {
|
|||
function verifyExists(file: string, description: string): void {
|
||||
if (!fs.existsSync(file)) {
|
||||
throw new Error(
|
||||
`Cannot locate ${description} at '${file}'. Specify 'gradle-version' or 'gradle-executable' for projects without Gradle wrapper configured.`
|
||||
`Cannot locate ${description} at '${file}'. Specify 'gradle-version' for projects without Gradle wrapper configured.`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,10 +49,6 @@ export function getGradleVersion(): string {
|
|||
return core.getInput('gradle-version')
|
||||
}
|
||||
|
||||
export function getGradleExecutable(): string {
|
||||
return core.getInput('gradle-executable')
|
||||
}
|
||||
|
||||
export function getArguments(): string[] {
|
||||
const input = core.getInput('arguments')
|
||||
return parseArgsStringToArgv(input)
|
||||
|
|
|
@ -22,11 +22,6 @@ export async function provisionGradle(): Promise<string | undefined> {
|
|||
return addToPath(await installGradle(gradleVersion))
|
||||
}
|
||||
|
||||
const gradleExecutable = params.getGradleExecutable()
|
||||
if (gradleExecutable !== '') {
|
||||
return addToPath(gradleExecutable)
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue