Skip to content

Commit 0e7db9c

Browse files
committed
updated CI
1 parent 14b4da7 commit 0e7db9c

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

.github/workflows/markdownlint.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/spellcheck.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/toc.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update TOC
2+
3+
on: [push]
4+
5+
jobs:
6+
toc:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: "20"
13+
- run: npm install -g markdown-toc
14+
- run: markdown-toc -i README.md
15+
- run: |
16+
git config --global user.name "GitHub Actions"
17+
git config --global user.email "actions@github.com"
18+
git add README.md
19+
git commit -m "Update TOC" || echo "No changes"
20+
git push

0 commit comments

Comments
 (0)