From c34612bcf44a962c98168e37f31135222d566554 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 25 Sep 2024 15:33:45 -0400 Subject: [PATCH] Add yaml linting Signed-off-by: Peter Zhu --- .github/workflows/yaml-lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/yaml-lint.yml diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml new file mode 100644 index 0000000..f89b9ac --- /dev/null +++ b/.github/workflows/yaml-lint.yml @@ -0,0 +1,19 @@ +--- +name: yaml-lint + +on: [push, pull_request] + +jobs: + yaml-lint: + name: 'yaml-lint' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: 'Yaml Lint' + uses: karancode/yamllint-github-action@master + with: + yamllint_file_or_dir: 'configs' + yamllint_strict: false + yamllint_comment: true + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}