mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 18:19:33 +01:00
1685dea1ac
Add wf to autotag minor and patch releases By default use Dockerfile rather than docker image, obviously is slower by ~15 sec which consumes precious runner minutes but harder to automate releases, tagging and updating image reference in action.yaml thou not impossible. Next time.
36 lines
899 B
YAML
36 lines
899 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: true
|
|
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,auto]'
|
|
required: false
|
|
default: "colored"
|
|
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
|