Correctly test for boolean input's truthiness
It gets cast to a string! Eep!
This commit is contained in:
Vendored
+2
-1
@@ -7473,7 +7473,8 @@ process.on('SIGINT', cancelHandler)
|
|||||||
process.on('SIGTERM', cancelHandler)
|
process.on('SIGTERM', cancelHandler)
|
||||||
|
|
||||||
// Main
|
// Main
|
||||||
if (core.getInput("emit_telemetry")) {
|
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
|
||||||
|
if (core.getInput("emit_telemetry").toString() === "true") {
|
||||||
__nccwpck_require__(9557)
|
__nccwpck_require__(9557)
|
||||||
} else {
|
} else {
|
||||||
main()
|
main()
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+2
-1
@@ -52,7 +52,8 @@ process.on('SIGINT', cancelHandler)
|
|||||||
process.on('SIGTERM', cancelHandler)
|
process.on('SIGTERM', cancelHandler)
|
||||||
|
|
||||||
// Main
|
// Main
|
||||||
if (core.getInput("emit_telemetry")) {
|
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
|
||||||
|
if (core.getInput("emit_telemetry").toString() === "true") {
|
||||||
require('./pre')
|
require('./pre')
|
||||||
} else {
|
} else {
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user