From be48d0bfe970ed40dad81895dea0c1b8d15b91a3 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Sat, 19 Feb 2022 16:08:18 +0900 Subject: [PATCH] Add CI task to lint markdown files --- .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..6610c79d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Code Quality Linting + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + markdown: + name: Lint Markdown + runs-on: ubuntu-latest + if: contains(github.event.head_commit.message, '[skip ci]') != true + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Generate docs + run: cd docs && ./build_docs.sh + - name: Run markdownlint-cli + uses: nosborn/github-action-markdown-cli@v3.0.1 + with: + files: .