Move isDefaultSetup to actions-util.ts and change implementation
This commit is contained in:
parent
259cc5a39c
commit
471ed9f4c5
6 changed files with 14 additions and 16 deletions
|
|
@ -472,6 +472,11 @@ export function isSelfHostedRunner() {
|
|||
return process.env.RUNNER_ENVIRONMENT === "self-hosted";
|
||||
}
|
||||
|
||||
/** Determines whether we are running in default setup. */
|
||||
export function isDefaultSetup(): boolean {
|
||||
return getWorkflowEventName() === "dynamic";
|
||||
}
|
||||
|
||||
export function prettyPrintInvocation(cmd: string, args: string[]): string {
|
||||
return [cmd, ...args].map((x) => (x.includes(" ") ? `'${x}'` : x)).join(" ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue