Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use core.getBooleanInput #280

Merged
merged 2 commits into from Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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'] = 'true'

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