We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 363bb1b commit 58c8341Copy full SHA for 58c8341
index.js
@@ -110,12 +110,15 @@ async function dep() {
110
let verbosity = core.getInput('verbosity')
111
let options = []
112
try {
113
- for (let [key, value] in Object.entries(JSON.parse(core.getInput('options')))) {
114
- options.push('-o', `${key}=${value}`)
+ let optionsArg = core.getInput('options')
+ if (optionsArg !== '') {
115
+ for (let [key, value] in Object.entries(JSON.parse(optionsArg))) {
116
+ options.push('-o', `${key}=${value}`)
117
+ }
118
+ } catch (e) {
119
+ console.error('Invalid JSON in options')
120
121
}
- } catch (e) {
- console.error('Invalid JSON in options')
- }
122
123
124
await $`php ${dep} ${cmd} --no-interaction ${ansi} ${verbosity} ${options}`
0 commit comments