mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 18:19:33 +01:00
76fdac3839
* Use github format output * Add few tests * Config yamllint
36 lines
906 B
YAML
36 lines
906 B
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: "github"
|
|
strict:
|
|
description: 'Return non-zero exit code on warnings as well as errors'
|
|
required: false
|
|
default: "false"
|
|
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|
|
args:
|
|
- ${{ inputs.file_or_dir }}
|
|
- ${{ inputs.config_file }}
|
|
- ${{ inputs.config_data }}
|
|
- ${{ inputs.format }}
|
|
- ${{ inputs.strict }}
|
|
|
|
branding:
|
|
color: blue
|
|
icon: check-square
|