feat: use action logging and error reporting

This commit is contained in:
2025-09-11 15:21:48 +02:00
parent 14f7b74d0f
commit 568e5abbc3
2 changed files with 110 additions and 21 deletions

View File

@@ -4,8 +4,10 @@ import { checkDatapack } from "./check_datapack.js"
async function run(): Promise<void> {
try {
const rootDir = core.getInput("rootDir")
let version = core.getInput("version")
await checkDatapack(rootDir, version)
const version = core.getInput("version")
const reportAll = core.getBooleanInput("reportAllErrors")
const verbose = core.getBooleanInput("verbose")
await checkDatapack(rootDir, version, reportAll, verbose)
} catch (error) {
if (error instanceof Error) {