Skip to content

Commit 9c29c6f

Browse files
authoredMay 5, 2024··
🐛 Fix prevent trimming attempts on undefined value (#389)
1 parent 643bc80 commit 9c29c6f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎dist/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -15946,7 +15946,8 @@ const context = {
1594615946
}),
1594715947
ALIAS_DOMAINS: parser.getInput({
1594815948
key: 'ALIAS_DOMAINS',
15949-
type: 'array'
15949+
type: 'array',
15950+
disableable: true
1595015951
}),
1595115952
PR_PREVIEW_DOMAIN: parser.getInput({
1595215953
key: 'PR_PREVIEW_DOMAIN'
@@ -16040,6 +16041,7 @@ core.debug(
1604016041

1604116042
module.exports = context
1604216043

16044+
1604316045
/***/ }),
1604416046

1604516047
/***/ 8396:
@@ -16183,8 +16185,8 @@ const execCmd = (command, args, cwd) => {
1618316185
core.debug(`EXEC: "${ command } ${ args }" in ${ cwd || '.' }`)
1618416186
return new Promise((resolve, reject) => {
1618516187
const process = spawn(command, args, { cwd })
16186-
let stdout
16187-
let stderr
16188+
let stdout = ''
16189+
let stderr = ''
1618816190

1618916191
process.stdout.on('data', (data) => {
1619016192
core.debug(data.toString())

‎src/helpers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const execCmd = (command, args, cwd) => {
55
core.debug(`EXEC: "${ command } ${ args }" in ${ cwd || '.' }`)
66
return new Promise((resolve, reject) => {
77
const process = spawn(command, args, { cwd })
8-
let stdout
9-
let stderr
8+
let stdout = ''
9+
let stderr = ''
1010

1111
process.stdout.on('data', (data) => {
1212
core.debug(data.toString())

0 commit comments

Comments
 (0)
Please sign in to comment.