mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-09 12:26:11 +00:00
Correctly test for boolean input's truthiness
It gets cast to a string! Eep!
This commit is contained in:
@@ -52,7 +52,8 @@ process.on('SIGINT', cancelHandler)
|
||||
process.on('SIGTERM', cancelHandler)
|
||||
|
||||
// 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')
|
||||
} else {
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user