import * as core from "@actions/core"; import { readFileSync } from "node:fs"; import { validateJson } from "./validation"; export async function run(): Promise { try { const jsonFilePath = core.getInput("json-file"); core.info(`Validating JSON file: ${jsonFilePath}`); const json = readFileSync(jsonFilePath, "utf8"); await validateJson(json); core.info("JSON file is valid"); } catch (error) { core.setFailed(`Error validating JSON file: ${error}`); } }