diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 939a28f5cf8..e9f824631cc 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -45,6 +45,21 @@ jobs: - name: run markdown-link-check run: make markdown-link-check + markdown-toc-check: + runs-on: ubuntu-latest + steps: + - name: check out code + uses: actions/checkout@v2 + + - name: install markdown-toc + run: make install-markdown-toc + + - name: run markdown-toc + run: make markdown-toc + + - name: validate markdown-toc + run: git diff --exit-code ':*.md' || (echo 'Generated markdown Table of Contents is out of date, please run "make markdown-toc" and commit the changes in this PR.' && exit 1) + misspell: runs-on: ubuntu-latest steps: