Skip to content

Commit

Permalink
Use core.getBooleanInput (#280)
Browse files Browse the repository at this point in the history
* Use core.getBooleanInput

* Update test
  • Loading branch information
imranismail committed Oct 16, 2022
1 parent 9fc5df9 commit 34490be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions __tests__/main.test.ts
Expand Up @@ -8,6 +8,7 @@ const tempDir = path.join(__dirname, 'runner', 'temp')

process.env['RUNNER_TOOL_CACHE'] = toolDir
process.env['RUNNER_TEMP'] = tempDir
process.env['INPUT_FAIL-FAST'] = 'false'

import * as installer from '../src/installer'

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Expand Up @@ -53,7 +53,7 @@ const fs = __importStar(__nccwpck_require__(7147));
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
const EnhancedOctokit = utils_1.GitHub.plugin(plugin_throttling_1.throttling);
const githubToken = core.getInput('github-token');
const failFast = core.getInput('fail-fast') === 'true' ? true : false;
const failFast = core.getBooleanInput('fail-fast');
let options = {
throttle: {
onRateLimit: (retryAfter, opts) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/installer.ts
Expand Up @@ -11,7 +11,7 @@ let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || ''
const EnhancedOctokit = GitHub.plugin(throttling)

const githubToken = core.getInput('github-token')
const failFast = core.getInput('fail-fast') === 'true' ? true : false
const failFast = core.getBooleanInput('fail-fast')

let options: OctokitOptions = {
throttle: {
Expand Down

0 comments on commit 34490be

Please sign in to comment.