Skip to content

Commit

Permalink
Merge remote-tracking branch 'dmotte/pr-yaml-extension' into init-use…
Browse files Browse the repository at this point in the history
…-regex
  • Loading branch information
kachick committed Sep 11, 2024
2 parents b17e2ae + b546f41 commit faa8379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function getDuration(durationable: string | MyDurationLike): Duration {
throw new Error('unexpected value is specified in durations');
}

const workflowFile = z.string().endsWith('.yml');
const workflowFile = z.string().regex(/\.(yml|yaml)$/);
const matchAllJobs = z.object({
workflowFile: workflowFile,
jobName: z.undefined(), // Preferring undefined over null for backward compatibility
Expand Down

0 comments on commit faa8379

Please sign in to comment.