-
Notifications
You must be signed in to change notification settings - Fork 12
/
action.yml
28 lines (28 loc) · 925 Bytes
/
action.yml
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
name: 'YAML schema validation'
description: 'YAML schema validation using https://github.com/23andMe/Yamale'
author: stigok
branding:
icon: 'file-text'
color: 'blue'
inputs:
schema:
description: 'Yamale schema file'
required: true
target:
description: 'File to validate'
required: true
no-strict:
description: 'Disable strict mode'
required: false
error-is-success:
description: 'Flip the validation logic making a failing test pass and a passing test fail. This is used internally for testing the action itself.'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
# Need to convert dashes to underscores in environment variable names for bash
# to be able to read them.
# Github Actions passes them like INPUT_NO-STRICT when they contain dashes.
INPUT_NO_STRICT: ${{ inputs.no-strict }}
INPUT_ERROR_IS_SUCCESS: ${{ inputs.error-is-success }}