-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
35 lines (31 loc) · 1 KB
/
action.yml
File metadata and controls
35 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 'JSON Validator typescript action'
description: 'Validate JSON files in a repository, optionally against a JSON schema'
author: 'woeterman94'
inputs:
folder:
description: 'Folder location to scan for JSON files (defaults to repository root)'
required: false
default: '.'
schema:
description: 'Path to JSON schema file for validation (optional)'
required: false
default: ''
ignore:
description: 'Glob patterns to ignore (comma or newline separated). Defaults to node_modules, dist, lib, and .git'
required: false
default: '**/node_modules/**, **/dist/**, **/lib/**, **/.git/**'
fail-on-invalid:
description: 'Whether to fail the action when invalid JSON files are found (default: true)'
required: false
default: 'true'
outputs:
valid-files:
description: 'Number of valid JSON files found'
invalid-files:
description: 'Number of invalid JSON files found'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-circle'
color: 'green'