From e4be1b1d3b1849523d487b60b4db57a37f3583ba Mon Sep 17 00:00:00 2001 From: Philip Molloy Date: Mon, 25 Nov 2024 22:56:28 +0100 Subject: [PATCH] github: Lint the shameless files Signed-off-by: Philip Molloy --- .github/workflows/lazy-lint.bash | 19 +++++++++++++++++++ .github/workflows/markdownlint.yml | 3 +-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 .github/workflows/lazy-lint.bash diff --git a/.github/workflows/lazy-lint.bash b/.github/workflows/lazy-lint.bash new file mode 100755 index 0000000..5b6689f --- /dev/null +++ b/.github/workflows/lazy-lint.bash @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +shame_list=( +./src/case_studies/TiogaPass.md +./src/components.md +./src/coreboot.u-root.systemboot/index.md +./src/faq.md +./src/getting_started.md +./src/implementation.md +./src/intro.md +./src/naming.md +./src/SUMMARY.md +./src/u-root.md +./src/utilities/cpu.md +./src/utilities/dut.md +./src/utilities/UEFI_Tool_Kit.md +) + +comm -3 <(find -name "*.md" | sort) <(printf "%s\n" "${shame_list[@]}" | sort) diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index 13892bd..1f0069e 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -13,5 +13,4 @@ jobs: run: sudo gem install mdl - name: Lint markdown - continue-on-error: true - run: mdl $(find . -name "*.md") + run: .github/workflows/lazy-lint.bash