From 7f5bbb83fe09a0f2d462c8fa0f4a8969131af810 Mon Sep 17 00:00:00 2001 From: Leo Lapworth Date: Fri, 11 Oct 2024 21:03:29 +0100 Subject: [PATCH] Run yamllint on each PR run and main merge fix #39 --- .github/workflows/pr-lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-lint.yml diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml new file mode 100644 index 0000000..aa2cbff --- /dev/null +++ b/.github/workflows/pr-lint.yml @@ -0,0 +1,24 @@ +name: Validate YAML Configs + +on: + push: + branches: + - main + pull_request: + +jobs: + validate-yaml: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Install yamllint + run: | + sudo apt-get update + sudo apt-get install -y yamllint + + - name: Validate All YAML Files + run: | + find . -name "*.yaml" -o -name "*.yml" -exec yamllint {} \;