MCPcopy Create free account
hub / github.com/cypress-io/github-action / getInputBool

Function getInputBool

index.js:321–331  ·  view source on GitHub ↗
(name, defaultValue = false)

Source from the content-addressed store, hash-verified

319 * @returns {boolean} converted input argument or default value
320 */
321const getInputBool = (name, defaultValue = false) => {
322 const param = core.getInput(name)
323 if (param === 'true' || param === '1') {
324 return true
325 }
326 if (param === 'false' || param === '0') {
327 return false
328 }
329
330 return defaultValue
331}
332
333/**
334 * Grabs the spec input from the workflow and normalizes

Callers 5

runTestsUsingCommandLineFunction · 0.85
validateCustomCommandFunction · 0.85
runTestsFunction · 0.85
isSummaryEnabledFunction · 0.85
installMaybeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected