This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ All you need is a **.vscode/settings.json** document at the root of the reposito | |
|
||
### `settingsFile` (optional) | ||
|
||
Location of the schema configuration file. | ||
Location of the schema configuration file. | ||
|
||
The default location is **.vscode/settings.json**, you can change it do a different location but it but still be a json document containing the `yaml.schemas` config. | ||
See the [VS Code YAML Extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) for how to structure the config. | ||
|
@@ -35,9 +35,13 @@ Instead of adding the `yaml.schemas` config to a file, you can instead supply it | |
## Outputs | ||
### `validFiles` | ||
|
||
A comma separated list of files that passed the schema validation. | ||
|
||
### `invalidFiles` | ||
|
||
A comma separated list of files that failed the schema validation. | ||
A comma separated list of files that failed the schema validation. | ||
|
||
> Schema validation fails if any results are returned from the YAML Language Server | ||
|
||
|
@@ -49,6 +53,6 @@ A comma separated list of files that failed the schema validation. | |
- uses: nwisbeta/[email protected] | ||
|
||
## Thanks | ||
This action has been made by 're-mixing' logic from these repos: | ||
- https://github.com/OrRosenblatt/validate-json-action | ||
This action has been made by 're-mixing' logic from these repos: | ||
- https://github.com/OrRosenblatt/validate-json-action | ||
- https://github.com/redhat-developer/yaml-language-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
name: 'YAML Schema Validator' | ||
description: 'Validate YAML files in a repo according to settings' | ||
inputs: | ||
settingsFile: | ||
settingsFile: | ||
description: 'Location of schema configuration file' | ||
required: false | ||
default: '.vscode/settings.json' | ||
yamlSchemasJson: | ||
description: 'The yaml.schemas config as inline JSON' | ||
required: false | ||
outputs: | ||
invalidFiles: | ||
validFiles: | ||
description: 'Comma separated list of files that passed the schema validation' | ||
invalidFiles: | ||
description: 'Comma separated list of files that failed the schema validation' | ||
runs: | ||
using: 'node12' | ||
main: 'lib/index.js' | ||
branding: | ||
branding: | ||
icon: 'check' | ||
color: orange |
Oops, something went wrong.