From f49642abbbd0dde6940c6805e26e82a6ab2f67d5 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Mon, 23 Jun 2025 20:05:16 -0700 Subject: [PATCH] Update table of contents within any Markdown file that has a TOC --- .github/workflows/auto_toc_update.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_toc_update.yml b/.github/workflows/auto_toc_update.yml index 2cc718c..6559e5e 100644 --- a/.github/workflows/auto_toc_update.yml +++ b/.github/workflows/auto_toc_update.yml @@ -19,7 +19,9 @@ jobs: - run: | curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc chmod a+x gh-md-toc - ./gh-md-toc --insert --no-backup --hide-footer --skip-header README.md + for file in "**/*.md"; do + ./gh-md-toc --insert --no-backup --hide-footer --skip-header $file + done rm gh-md-toc - uses: stefanzweifel/git-auto-commit-action@v4 with: