yamllint/action.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

2019-10-16 11:13:43 +02:00
name: 'YAML Lint'
2019-10-16 10:43:28 +02:00
description: 'Validate YAML syntax'
author: 'ibiqlik'
inputs:
file_or_dir:
2019-12-17 14:15:23 +01:00
description: 'File(s) or Directory, separate by space if multiple files or folder are specified'
required: false
2019-10-16 10:43:28 +02: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 10:43:28 +02:00
required: false
default: "parsable"
2019-10-16 10:43:28 +02:00
strict:
description: 'Return non-zero exit code on warnings as well as errors'
required: false
2019-12-17 14:15:23 +01:00
default: "false"
2021-05-26 08:56:08 +02:00
no_warnings:
description: 'Output only error level problems'
required: false
default: "false"
2019-10-16 10:43:28 +02:00
outputs:
logfile:
description: "Yamllint log file path"
value: ${{ steps.yamllint.outputs.logfile }}
2019-10-16 10:43:28 +02:00
runs:
2020-11-08 18:54:33 +01:00
using: 'composite'
steps:
- id: yamllint
run: |
# export LOGFILE=$(mktemp yamllint-XXXXXX)
${{ github.action_path }}/entrypoint.sh
2020-11-08 18:54:33 +01: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 08:56:08 +02:00
INPUT_NO_WARNINGS: ${{ inputs.no_warnings }}
2019-10-16 11:13:43 +02:00
branding:
color: blue
icon: check-square