mirror of
https://github.com/deployphp/action.git
synced 2025-04-01 19:06:35 +00:00
corrected exclamation mark
This commit is contained in:
parent
26fe6d39eb
commit
f9ab46bb0b
1 changed files with 5 additions and 5 deletions
10
index.js
10
index.js
|
@ -117,13 +117,13 @@ async function dep() {
|
||||||
try {
|
try {
|
||||||
let optionsArg = core.getInput('options')
|
let optionsArg = core.getInput('options')
|
||||||
if (optionsArg !== '') {
|
if (optionsArg !== '') {
|
||||||
for (let [key, value] in Object.entries(JSON.parse(optionsArg))) {
|
for (let [key, value] in Object.entries(JSON.parse(optionsArg))) {
|
||||||
options.push('-o', `${key}=${value}`)
|
options.push('-o', `${key}=${value}`)
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.error('Invalid JSON in options')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Invalid JSON in options')
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await $`php ${dep} ${cmd} ${recipe} --no-interaction ${ansi} ${verbosity} ${options}`
|
await $`php ${dep} ${cmd} ${recipe} --no-interaction ${ansi} ${verbosity} ${options}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue