mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-30 01:54:52 +00:00
Only emit telemetry when the emit_telemetry input is truthy
This commit is contained in:
@@ -4,6 +4,10 @@ runs:
|
|||||||
using: 'node16'
|
using: 'node16'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
inputs:
|
inputs:
|
||||||
|
emit_telemetry:
|
||||||
|
description: 'Should this action emit build telemetry instead of deploy the build artifact'
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
token:
|
token:
|
||||||
description: 'GitHub token'
|
description: 'GitHub token'
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
|
|||||||
@@ -52,4 +52,8 @@ process.on('SIGINT', cancelHandler)
|
|||||||
process.on('SIGTERM', cancelHandler)
|
process.on('SIGTERM', cancelHandler)
|
||||||
|
|
||||||
// Main
|
// Main
|
||||||
main()
|
if (core.getInput("emit_telemetry")) {
|
||||||
|
require('./pre')
|
||||||
|
} else {
|
||||||
|
main()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user