mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 15:13:06 +08:00
Fix dict assembly
This commit is contained in:
parent
4ee978ae61
commit
9b11ac16a8
5
post.js
5
post.js
@ -6,10 +6,9 @@ try {
|
||||
const composeFile = core.getInput('compose-file');
|
||||
const downOptionsString = core.getInput('down-options');
|
||||
|
||||
if (downOptionsString.length > 0)
|
||||
let options = { config: composeFile, log: true, commandOptions: downOptionsString.split(" ") };
|
||||
else
|
||||
let options = { config: composeFile, log: true};
|
||||
if (downOptionsString.length > 0)
|
||||
options['commandOptions'] = downOptionsString.split(" ");
|
||||
|
||||
if (!fs.existsSync(composeFile)) {
|
||||
console.log(`${composeFile} not exists`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user