mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-09 00:26:14 +00:00
Support existing behavior of this action
This commit is contained in:
@@ -6,7 +6,6 @@ runs:
|
|||||||
inputs:
|
inputs:
|
||||||
emit_telemetry:
|
emit_telemetry:
|
||||||
description: 'Should this action emit build telemetry instead of deploy the build artifact'
|
description: 'Should this action emit build telemetry instead of deploy the build artifact'
|
||||||
default: false
|
|
||||||
required: false
|
required: false
|
||||||
token:
|
token:
|
||||||
description: 'GitHub token'
|
description: 'GitHub token'
|
||||||
|
|||||||
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -7474,10 +7474,14 @@ process.on('SIGTERM', cancelHandler)
|
|||||||
|
|
||||||
// Main
|
// Main
|
||||||
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
|
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
|
||||||
if (core.getInput("emit_telemetry").toString() === "true") {
|
const emitTelemetry = core.getInput("emit_telemetry").toString();
|
||||||
|
if (emitTelemetry === "true") {
|
||||||
__nccwpck_require__(9557)
|
__nccwpck_require__(9557)
|
||||||
} else {
|
} else if (emitTelemetry === "false") {
|
||||||
main()
|
main()
|
||||||
|
} else {
|
||||||
|
// If emit_telemetry is not set, that indicates an older version of the dynamic workflow that doesn't separate telemetry from deployment
|
||||||
|
main().then(() => __nccwpck_require__(9557))
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -53,8 +53,12 @@ process.on('SIGTERM', cancelHandler)
|
|||||||
|
|
||||||
// Main
|
// Main
|
||||||
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
|
// Boolean inputs are stringified, but manually convert this input just in case that changes in the future.
|
||||||
if (core.getInput("emit_telemetry").toString() === "true") {
|
const emitTelemetry = core.getInput("emit_telemetry").toString();
|
||||||
|
if (emitTelemetry === "true") {
|
||||||
require('./pre')
|
require('./pre')
|
||||||
} else {
|
} else if (emitTelemetry === "false") {
|
||||||
main()
|
main()
|
||||||
|
} else {
|
||||||
|
// If emit_telemetry is not set, that indicates an older version of the dynamic workflow that doesn't separate telemetry from deployment
|
||||||
|
main().then(() => require('./pre'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user