Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

YAML Lint and Annotate

v1.0.2

YAML Lint and Annotate

check-square

YAML Lint and Annotate

Lints yaml files and annotates every finding

Installation

Copy and paste the following snippet into your .yml file.

              

- name: YAML Lint and Annotate

uses: Staffbase/yamllint-action@v1.0.2

Learn more about this action in Staffbase/yamllint-action

Choose a version

Lint All Your YAML Files

Using this GitHub Action in your workflow to lint all yaml files and then annotates every finding in the changed files view.

annotation

Usage

Create a new workflow with the following content:

name: YAMLlint

on:
  push:
    branches:
      - '**'
    tags-ignore:
      - '**'

jobs:
  yamllint:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Lint and Annotate
        uses: staffbase/yamllint-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          ## The target path is processed recursively
          target-path: <relative-folder-path>

Credits

This action is using