validate-yaml/src/index.ts

16 lines
365 B
TypeScript
Raw Normal View History

import * as core from '@actions/core'
import {validateYAML} from './validate'
async function run(): Promise<void> {
try {
const files: string[] = core.getMultilineInput('files')
const schemaPath: string = core.getInput('schemaPath')
await validateYAML(files, schemaPath)
} catch (error) {
core.setFailed((error as Error).message)
}
}
run()