# validateWorkflowYaml (/docs/api/functions/validateWorkflowYaml)



```ts
function validateWorkflowYaml(yamlText, fileName): Diagnostic[];
```

Defined in: [packages/core/src/validate.ts:67](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/validate.ts#L67)

Validate generated workflow YAML against GitHub's official embedded schema
via @actions/workflow-parser. Returns schema-level diagnostics (empty == valid).

## Parameters [#parameters]

### yamlText [#yamltext]

`string`

### fileName [#filename]

`string`

## Returns [#returns]

[`Diagnostic`](../interfaces/Diagnostic.mdx)\[]


## Sitemap

Browse the full documentation: [Markdown sitemap](https://austenstone.github.io/actio/sitemap.md) · [XML sitemap](https://austenstone.github.io/actio/sitemap.xml)