()
| 16 | type WorkflowJob = NonNullable<ListWorkflowJobsResponse["jobs"]>[number]; |
| 17 | |
| 18 | function usage(): void { |
| 19 | console.error( |
| 20 | "Usage: bun run scripts/determine-job-url.ts --pattern \"<job name substring>\"", |
| 21 | ); |
| 22 | console.error(""); |
| 23 | console.error("Looks up the job URL from the current workflow run."); |
| 24 | } |
| 25 | |
| 26 | function parseArgs(argv: string[]): { pattern: string } { |
| 27 | let pattern: string | undefined; |