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
+6 -1
View File
@@ -247,9 +247,14 @@ export function isSelfHostedRunner() {
return process.env.RUNNER_ENVIRONMENT === "self-hosted";
}
/** Determines whether the workflow trigger is `dynamic`. */
export function isDynamicWorkflow(): boolean {
return getWorkflowEventName() === "dynamic";
}
/** Determines whether we are running in default setup. */
export function isDefaultSetup(): boolean {
return getWorkflowEventName() === "dynamic";
return isDynamicWorkflow();
}
export function prettyPrintInvocation(cmd: string, args: string[]): string {