mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 18:19:33 +01:00
06c7388780
Use `GITHUB_ACTION_PATH` environment variable instead of `${{ ithub.action_path }}` in order to allow execution inside a docker container. As metioned here: https://github.com/actions/runner/issues/716#issuecomment-795238933
51 lines
1.4 KiB
YAML
51 lines
1.4 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"
|
|
no_warnings:
|
|
description: 'Output only error level problems'
|
|
required: false
|
|
default: "false"
|
|
|
|
outputs:
|
|
logfile:
|
|
description: "Yamllint log file path"
|
|
value: ${{ steps.yamllint.outputs.logfile }}
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- id: yamllint
|
|
run: |
|
|
# export LOGFILE=$(mktemp yamllint-XXXXXX)
|
|
$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 }}
|
|
INPUT_NO_WARNINGS: ${{ inputs.no_warnings }}
|
|
|
|
branding:
|
|
color: blue
|
|
icon: check-square
|