Use core.getBooleanInput (#280)

* Use core.getBooleanInput

* Update test
This commit is contained in:
Imran Ismail
2022-10-17 02:22:29 +08:00
committed by GitHub
parent 8757bab9d6
commit 86a0af5aa8
4 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ const tempDir = path.join(__dirname, 'runner', 'temp')
process.env['RUNNER_TOOL_CACHE'] = toolDir process.env['RUNNER_TOOL_CACHE'] = toolDir
process.env['RUNNER_TEMP'] = tempDir process.env['RUNNER_TEMP'] = tempDir
process.env['INPUT_FAIL-FAST'] = 'true'
import * as installer from '../src/installer' import * as installer from '../src/installer'

2
dist/index.js vendored
View File

@@ -53,7 +53,7 @@ const fs = __importStar(__nccwpck_require__(7147));
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || ''; let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
const EnhancedOctokit = utils_1.GitHub.plugin(plugin_throttling_1.throttling); const EnhancedOctokit = utils_1.GitHub.plugin(plugin_throttling_1.throttling);
const githubToken = core.getInput('github-token'); const githubToken = core.getInput('github-token');
const failFast = core.getInput('fail-fast') === 'true' ? true : false; const failFast = core.getBooleanInput('fail-fast');
let options = { let options = {
throttle: { throttle: {
onRateLimit: (retryAfter, opts) => { onRateLimit: (retryAfter, opts) => {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,7 @@ let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || ''
const EnhancedOctokit = GitHub.plugin(throttling) const EnhancedOctokit = GitHub.plugin(throttling)
const githubToken = core.getInput('github-token') const githubToken = core.getInput('github-token')
const failFast = core.getInput('fail-fast') === 'true' ? true : false const failFast = core.getBooleanInput('fail-fast')
let options: OctokitOptions = { let options: OctokitOptions = {
throttle: { throttle: {