yamllint/action.yml
Ilir Bekteshi c2e8eccd22
Change default output format to parsable (#17)
* Change default output format to parsable

`github` format is barely usable in the logs where it only shows that errors/warnings occurred but not which file:line.

* Update README.md
2021-04-23 12:03:45 +02:00

38 lines
1 KiB
YAML

name: 'YAML Lint'
description: 'Validate YAML syntax'
author: 'ibiqlik'
inputs:
file_or_dir:
description: 'File(s) or Directory, separate by space if multiple files or folder are specified'
required: false
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]'
required: false
default: "parsable"
strict:
description: 'Return non-zero exit code on warnings as well as errors'
required: false
default: "false"
runs:
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 }}
branding:
color: blue
icon: check-square