feat: use action logging and error reporting
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user