Only emit telemetry when the emit_telemetry input is truthy

This commit is contained in:
Jess Bees
2022-03-23 14:40:57 -04:00
parent e1279a88ef
commit 92f6725bee
2 changed files with 9 additions and 1 deletions

View File

@@ -52,4 +52,8 @@ process.on('SIGINT', cancelHandler)
process.on('SIGTERM', cancelHandler)
// Main
main()
if (core.getInput("emit_telemetry")) {
require('./pre')
} else {
main()
}