summaryrefslogtreecommitdiff
path: root/.github/workflows/check-toc.yml
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-11-28 15:43:36 +0800
committerGitHub <noreply@github.com>2024-11-28 15:43:36 +0800
commit947b99e8ebaa81e9c8ee9b0f3e247d8d329041ad (patch)
tree5ba708f8edd2fa44486c5ecebe669369cbf4b74b /.github/workflows/check-toc.yml
parent2c82b14c476c368c98b6e081aa9f89c878e165fb (diff)
Add Table of Contents check to CI, and bot script to regenerate (#5618)
* Sort filenames when generating table of contents The order of EnumerateFiles is unspecified * Add build table of contents bash script * Add toc checking to CI * Add --check-only option to toc checking * regenerate ToC
Diffstat (limited to '.github/workflows/check-toc.yml')
-rw-r--r--.github/workflows/check-toc.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/check-toc.yml b/.github/workflows/check-toc.yml
new file mode 100644
index 000000000..2b478cb63
--- /dev/null
+++ b/.github/workflows/check-toc.yml
@@ -0,0 +1,13 @@
+name: Check Table of Contents (comment /regenerate-toc to auto-fix)
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+jobs:
+ check-formatting:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - run: ./docs/build_toc.sh --check-only