mirror of
https://github.com/brittonhayes/validate-yaml.git
synced 2024-11-23 13:40:57 -05:00
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
|
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()
|