We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40fe6bb commit fb8808fCopy full SHA for fb8808f
1 file changed
main.ts
@@ -126,7 +126,14 @@ async function run() {
126
const block_on_severity = core.getInput("BLOCK_ON_SEVERITY");
127
const warn_on_severity = core.getInput("WARN_ON_SEVERITY");
128
const polling_timeout = core.getInput("POLLING_TIMEOUT");
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
137
// Validate severity levels
138
if (
139
block_on_severity &&
0 commit comments