-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (35 loc) · 1.09 KB
/
toc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: TOC Generator
on:
push:
branches:
- main
paths:
- README.md
- README_zh.md
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
# - uses: technote-space/toc-generator@v4
# with:
# CREATE_PR: true
# GITHUB_TOKEN: ${{ secrets.LIBRO_TOKEN }}
# PR_TITLE: 'chore(docs): update TOC of readme'
- name: Generate TOC for README.md
uses: technote-space/toc-generator@v4
with:
TARGET_PATHS: README.md
TOC_TITLE: '## Table of Contents'
GITHUB_TOKEN: ${{ secrets.LIBRO_TOKEN }}
PR_TITLE: 'chore(docs): update TOC of readme'
COMMIT_MESSAGE: 'chore(docs): update TOC of readme'
- name: Generate TOC for README_zh.md
uses: technote-space/toc-generator@v4
with:
TARGET_PATHS: README_zh.md
TOC_TITLE: '## 目录'
CREATE_PR: true
GITHUB_TOKEN: ${{ secrets.LIBRO_TOKEN }}
PR_TITLE: 'chore(docs): update TOC of readme'
COMMIT_MESSAGE: 'chore(docs): update TOC of readme'