From 48f37b9b78f19917510743bf721cb455567014cf Mon Sep 17 00:00:00 2001 From: Mist Date: Thu, 2 May 2024 17:00:09 +0800 Subject: [PATCH] [Feat] add actions to generate TOC --- .github/workflows/generate_toc.yml | 21 +++++++++++++++++++++ README.md | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/generate_toc.yml diff --git a/.github/workflows/generate_toc.yml b/.github/workflows/generate_toc.yml new file mode 100644 index 0000000..f21185d --- /dev/null +++ b/.github/workflows/generate_toc.yml @@ -0,0 +1,21 @@ +name: Generate TOC + +on: + push: + paths: + README.md + branches: + main + +permissions: + contents: write + +jobs: + generate-toc: + name: TOC Generator + runs-on: ubuntu-latest + steps: + - uses: technote-space/toc-generator@v4 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/README.md b/README.md index 0e6aa4a..1a2a9f8 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@

CodeSnap.nvim

📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim

+ + ## 🚣Migration If you have installed v0.x before, this chapter will show you what break changes version v1.x introduced.