Skip to content

Commit

Permalink
[Feat] add actions to generate TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed May 2, 2024
1 parent 5c365e0 commit 48f37b9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/generate_toc.yml
Original file line number Diff line number Diff line change
@@ -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 }}

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<h1 align="center">CodeSnap.nvim</h1>
<p align="center">📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim</p>

<!-- START doctoc -->
<!-- END doctoc -->

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

0 comments on commit 48f37b9

Please sign in to comment.