yamllint/action.yml

39 lines
1 KiB
YAML
Raw Normal View History

2019-10-16 05:13:43 -04:00
name: 'YAML Lint'
2019-10-16 04:43:28 -04:00
description: 'Validate YAML syntax'
author: 'ibiqlik'
inputs:
file_or_dir:
2019-12-17 08:15:23 -05:00
description: 'File(s) or Directory, separate by space if multiple files or folder are specified'
required: false
2019-10-16 04:43:28 -04:00
config_file:
description: 'Path to custom configuration'
required: false
config_data:
description: 'Custom configuration (as YAML source)'
required: false
format:
description: 'Format for parsing output [parsable,standard,colored,github,auto]'
2019-10-16 04:43:28 -04:00
required: false
default: "github"
2019-10-16 04:43:28 -04:00
strict:
description: 'Return non-zero exit code on warnings as well as errors'
required: false
2019-12-17 08:15:23 -05:00
default: "false"
2019-10-16 04:43:28 -04:00
runs:
2020-11-08 12:54:33 -05:00
using: 'composite'
steps:
- run: ${{ github.action_path }}/entrypoint.sh
shell: bash
env:
INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }}
INPUT_CONFIG_FILE: ${{ inputs.config_file }}
INPUT_CONFIG_DATA: ${{ inputs.config_data }}
INPUT_FORMAT: ${{ inputs.format }}
INPUT_STRICT: ${{ inputs.strict }}
2019-10-16 05:13:43 -04:00
branding:
color: blue
icon: check-square