Skip to content

Commit fb8808f

Browse files
committed
Adding debugging logs
1 parent 40fe6bb commit fb8808f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

main.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ async function run() {
126126
const block_on_severity = core.getInput("BLOCK_ON_SEVERITY");
127127
const warn_on_severity = core.getInput("WARN_ON_SEVERITY");
128128
const polling_timeout = core.getInput("POLLING_TIMEOUT");
129-
129+
if (polling_timeout) {
130+
maxWaitTime = parseInt(polling_timeout, 10);
131+
// Fallback to default value if the value is incorrect
132+
if (isNaN(maxWaitTime)) {
133+
maxWaitTime = 300000;
134+
}
135+
console.log("Custom polling timeout set: " + polling_timeout);
136+
}
130137
// Validate severity levels
131138
if (
132139
block_on_severity &&

0 commit comments

Comments
 (0)