This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
Auto-Homelab/.forgejo/workflows/yamllint.yml
Workflow config file is invalid. Please check your config file: yaml: line 27: mapping values are not allowed in this context

27 lines
590 B
YAML

name: Lint on PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
name: Lint YAML files
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 14
- name: Install yamllint
run: npm install -g yamllint
- name: Show yamllint version
run: yamllint --version
- name: Lint .yml files
run: yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./**/*.yml