Go to file
2024-04-24 01:45:49 +02:00
.github Merge pull request #6 from ansible-actions/dependabot/github_actions/ansible-actions/yamllint-action-0.0.2 2024-04-24 01:45:49 +02:00
.gitignore Initialize action 2023-10-21 00:38:00 +02:00
.yamllint Initialize action 2023-10-21 00:38:00 +02:00
action.yml Initialize action 2023-10-21 00:38:00 +02:00
Dockerfile Initialize action 2023-10-21 00:38:00 +02:00
LICENSE Initialize action 2023-10-21 00:38:00 +02:00
README.md Update README.md 2024-03-21 21:07:37 +01:00
yaml_docker.py Initialize action 2023-10-21 00:38:00 +02:00

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