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'
|
2020-10-22 06:23:39 -04:00
|
|
|
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:
|
2020-10-22 06:23:39 -04:00
|
|
|
description: 'Format for parsing output [parsable,standard,colored,github,auto]'
|
2019-10-16 04:43:28 -04:00
|
|
|
required: false
|
2021-04-23 06:03:45 -04:00
|
|
|
default: "parsable"
|
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"
|
2021-05-26 02:56:08 -04:00
|
|
|
no_warnings:
|
|
|
|
description: 'Output only error level problems'
|
|
|
|
required: false
|
|
|
|
default: "false"
|
2019-10-16 04:43:28 -04:00
|
|
|
|
2021-08-10 13:47:03 -04:00
|
|
|
outputs:
|
|
|
|
logfile:
|
|
|
|
description: "Yamllint log file path"
|
|
|
|
value: ${{ steps.yamllint.outputs.logfile }}
|
|
|
|
|
2019-10-16 04:43:28 -04:00
|
|
|
runs:
|
2020-11-08 12:54:33 -05:00
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2021-08-10 13:47:03 -04:00
|
|
|
- id: yamllint
|
2021-08-12 05:46:16 -04:00
|
|
|
run: |
|
2021-08-19 02:52:08 -04:00
|
|
|
# export LOGFILE=$(mktemp yamllint-XXXXXX)
|
2021-08-16 07:58:18 -04:00
|
|
|
${{ github.action_path }}/entrypoint.sh
|
2020-11-08 12:54:33 -05:00
|
|
|
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 }}
|
2021-05-26 02:56:08 -04:00
|
|
|
INPUT_NO_WARNINGS: ${{ inputs.no_warnings }}
|
2019-10-16 05:13:43 -04:00
|
|
|
|
|
|
|
branding:
|
|
|
|
color: blue
|
|
|
|
icon: check-square
|