Skip to content

ansible-actions/yamllint-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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