Skip to content

Commit ccf516a

Browse files
committed
refactor: Ensure annotate is set by default to true.
1 parent 854a21f commit ccf516a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const core = require("@actions/core");
22
const utils = require("./utils");
33
const { upMany, upAll, run } = require("docker-compose/dist/v2");
44

5+
let annotate = true; // Default annotate to true
6+
57
try {
68
const composeFiles = utils.parseComposeFiles(
79
core.getMultilineInput("compose-file")
@@ -10,7 +12,8 @@ try {
1012
return;
1113
}
1214

13-
const annotate = core.getInput("annotate");
15+
annotate = core.getInput("annotate") || true; // Override if "annotate" input is provided
16+
1417
const services = core.getMultilineInput("services", { required: false });
1518

1619
const options = {

0 commit comments

Comments
 (0)