Don't bother converting action input to string

This has been an established pattern with Actions for a long time; we don't have to worry about it changing.

Co-authored-by: James M. Greene <JamesMGreene@github.com>
This commit is contained in:
Jess Bees
2022-03-31 11:47:33 -04:00
committed by GitHub
parent 32b8b86ff0
commit ad36b7023a

View File

@@ -52,8 +52,7 @@ process.on('SIGINT', cancelHandler)
process.on('SIGTERM', cancelHandler)
// Main
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
const emitTelemetry = core.getInput("emit_telemetry").toString();
const emitTelemetry = core.getInput("emit_telemetry")
if (emitTelemetry === "true") {
require('./pre')
} else if (emitTelemetry === "false") {