Bump checkout to v3 (#36)
v2 is using a deprecated version of Node. See https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
GitHub YAMLlint
This action executes
yamllint(https://github.com/adrienverge/yamllint) against files or folderUsage
Simple as:
Optional input parameters
config_file- Path to custom configurationconfig_data- Custom configuration (as YAML source)file_or_dir- Enter file/folder (space separated), wildcards accepted. Examples:.- run against all yaml files in a directory recursively (default)file1.yamlfile1.yaml file2.yamlkustomize/**/*.yaml mychart/*values.yamlformat- Format for parsing output[parsable,standard,colored,github,auto] (default: parsable)strict- Return non-zero exit code on warnings as well as errors[true,false] (default: false)no_warnings- Output only error level problems[true,false] (default: false)Note: If
.yamllintconfiguration file exists in your root folder, yamllint automatically uses it.Outputs
logfile- Path to yamllint log file${{ steps.<step>.outputs.logfile }}Note: Each yamllint run (for example if you define multiple yamllint steps) has its own log
Example usage in workflow
Or just simply lint all yaml files in the repository:
Config data examples:
Use output to save/upload the log in artifact. Note, you must have
idin the step running the yamllint action.