mirror of
https://github.com/ansible-actions/yamllint-action.git
synced 2024-05-14 04:49:46 +00:00
|
||
---|---|---|
.github | ||
.gitignore | ||
.yamllint | ||
action.yml | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
yaml_docker.py |
Action Yamllint
Linting Yaml files using the yamllint package directly from pypi.
Usage
Example of .github/workflows/yamllint-check.yml
---
name: Yamllint check
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
build:
name: Yamllint
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Run yamllint
uses: ansible-actions/yamllint-action@v0.0.2
with:
target: "./"
This will run the command yamllint ./
Variables
name | required | description | example values |
---|---|---|---|
target |
true | Target for yamllint | ./ or *.yml or path/to/yamlfiles |