Run linter on YAML files #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |