Skip to content

Commit

Permalink
fix: add workflows to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
runreal-warman committed Apr 8, 2024
1 parent b3ded0b commit 7429e12
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/schema.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down Expand Up @@ -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()
),
})

0 comments on commit 7429e12

Please sign in to comment.