Add isDynamicWorkflow function

This commit is contained in:
Michael B. Gale
2025-10-06 12:55:54 +01:00
parent 4d0c164f60
commit 43ce7ef399
6 changed files with 26 additions and 6 deletions

5
lib/upload-lib.js generated
View File

@@ -88474,9 +88474,12 @@ function getWorkflowRunAttempt() {
}
return workflowRunAttempt;
}
function isDefaultSetup() {
function isDynamicWorkflow() {
return getWorkflowEventName() === "dynamic";
}
function isDefaultSetup() {
return isDynamicWorkflow();
}
function prettyPrintInvocation(cmd, args) {
return [cmd, ...args].map((x) => x.includes(" ") ? `'${x}'` : x).join(" ");
}