Skip to content

Yamllint Action

Actions
Action to run Yamllint
v0.0.2
Latest
Star (1)

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/[email protected]
        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

Yamllint Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Action to run Yamllint
v0.0.2
Latest

Yamllint Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.