Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 31 additions & 94 deletions dist/index.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/inputs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getInput, getBooleanInput } from "@actions/core";
import { parse as parseYaml } from "yaml";
import { z } from "zod";
import { z } from "zod/mini";
import type { Inputs, RunInstall } from "./types.js";
import { RunInstallInputSchema } from "./types.js";

Expand Down Expand Up @@ -39,7 +39,7 @@ function parseRunInstall(input: string): RunInstall[] {
if (Array.isArray(result)) return result;
return [result];
} catch (error) {
if (error instanceof z.ZodError) {
if (error instanceof z.core.$ZodError) {
throw new Error(
`Invalid run-install input: ${error.issues.map((e) => e.message).join(", ")}`,
);
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { z } from "zod";
import { z } from "zod/mini";

// Run install configuration schema
export const RunInstallSchema = z.object({
cwd: z.string().optional(),
args: z.array(z.string()).optional(),
cwd: z.optional(z.string()),
args: z.optional(z.array(z.string())),
});

export const RunInstallInputSchema = z.union([
Expand Down
Loading