mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 15:13:06 +08:00
Fix minor bugs
This commit is contained in:
parent
3533107d1d
commit
5e50ea4795
1
main.js
1
main.js
@ -1,6 +1,7 @@
|
|||||||
const core = require("@actions/core");
|
const core = require("@actions/core");
|
||||||
const compose = require("docker-compose");
|
const compose = require("docker-compose");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
const utils = require("./utils");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const composeFile = core.getInput("compose-file");
|
const composeFile = core.getInput("compose-file");
|
||||||
|
|||||||
2
utils.js
2
utils.js
@ -1,7 +1,7 @@
|
|||||||
module.exports.getOptions = (flags) => {
|
module.exports.getOptions = (flags) => {
|
||||||
const options = { config: composeFile, log: true };
|
const options = { config: composeFile, log: true };
|
||||||
if (flags != null && typeof flags == "string" && flags.length > 0) {
|
if (flags != null && typeof flags == "string" && flags.length > 0) {
|
||||||
options["commandOptions"] = downFlagsString.split(" ");
|
options["commandOptions"] = flags.split(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user