From 7429e12d739f2c94fdfec550d97beb9fc79d5943 Mon Sep 17 00:00:00 2001 From: warman Date: Mon, 8 Apr 2024 11:24:56 -0400 Subject: [PATCH] fix: add workflows to schema --- src/lib/schema.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib/schema.ts b/src/lib/schema.ts index 20df780..636708d 100644 --- a/src/lib/schema.ts +++ b/src/lib/schema.ts @@ -1,4 +1,5 @@ import { z } from '/deps.ts' + export const ConfigSchema = z.object({ '$schema': z.string().optional().describe('Runreal JSON-Schema spec version'), engine: z.object({ @@ -41,4 +42,16 @@ export const ConfigSchema = z.object({ mirrorsPath: z.string().optional().describe('Path to git mirrors folder'), }) .optional(), + workflows: z.array( + z.object({ + name: z.string().describe('Workflow name'), + steps: z.array( + z.object({ + command: z.string().describe('Command to execute'), + args: z.array(z.string()).optional().describe('Command arguments'), + }) + ), + }) + .optional() + ), })