Skip to content

Run linter on YAML files #1

Run linter on YAML files

Run linter on YAML files #1

Workflow file for this run

# Summary: GitHub Actions workflow to run a YAML linter on .yml files.
#
# Copyright 2024 Michael Hucka.
# License: MIT license – see file "LICENSE" in the project website.
# Website: https://github.com/mhucka/devonthink-hacks
name: YAMLlint
on:
pull_request:
types: [opened, synchronize]
paths:
- '**.yml'
- '**.yaml'
push:
branches:
- main
paths:
- '**.yml'
- '**.yaml'
run-name: Run linter on YAML files
jobs:
Yamllint:
name: GitHub YAMLlint
runs-on: ubuntu-latest
steps:
- name: Check out copy of git repository
uses: actions/checkout@v4
- name: Run YAMLlint
uses: ibiqlik/action-yamllint@v3
with:
config_file: .yamllint.yml