Use core functionality to access action inputs

- Specify default values in action.yaml definition where appropriate
- Replace custom methods with core functions:
  -  getInputBoolean() with core.getBooleanInput()
  - inputOrNull() with core.getInput()
  - inputArrayOrNull() with core.getMultilineInput()
- Remove github-utils.js
This commit is contained in:
Daz DeBoer 2021-07-20 11:44:56 -06:00
parent b9684c0cf5
commit 02d4f46354
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
7 changed files with 26 additions and 54 deletions

View file

@ -7,7 +7,6 @@ import * as cache from '@actions/cache'
import * as toolCache from '@actions/tool-cache'
import * as gradlew from './gradlew'
import * as github from './github-utils'
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions'
@ -185,7 +184,7 @@ async function httpGetString(url: string): Promise<string> {
}
function isDistributionsCacheDisabled(): boolean {
return !github.inputBoolean('distributions-cache-enabled', true)
return !core.getBooleanInput('distributions-cache-enabled')
}
interface GradleVersionInfo {