(e: any)
| 6 | import fs from "fs"; |
| 7 | |
| 8 | export function reportError(e: any) { |
| 9 | const { commandFailed } = e; |
| 10 | if (commandFailed) { |
| 11 | core.error(`Command failed: ${commandFailed.command}`); |
| 12 | core.error(commandFailed.stderr); |
| 13 | } else { |
| 14 | core.error(`${e.stack}`); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | export async function getCmdOutput( |
| 19 | cmdFormat: string, |