Skip to content

YAMLLint

YAMLLint #451

Workflow file for this run

---
name: "YAMLLint"
on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions: {}
jobs:
lint:
name: Check with YAMLLint
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install YAMLLint
shell: bash
run: |
pip install yamllint==1.37.1
msg="$(pip list --outdated | grep -e yamllint || true)"
if [ -n "${msg}" ]; then
>&2 echo "ERROR: outdated: ${msg}"
exit 1
fi
- name: Run YAMLLint
shell: bash
run: "yamllint -d '{extends: default, rules: {line-length: disable}}' ."