We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b45dc commit 1b66447Copy full SHA for 1b66447
1 file changed
.github/workflows/update-toc.yml
@@ -8,21 +8,30 @@ on:
8
- master
9
workflow_dispatch:
10
11
+permissions:
12
+ contents: write
13
+ pull-requests: write
14
+
15
jobs:
16
update-toc:
17
runs-on: ubuntu-latest
18
steps:
19
- uses: actions/checkout@v4
20
with:
21
fetch-depth: 0
22
+ token: ${{ secrets.TOC_TOKEN }}
23
24
- name: Generate TOC
25
uses: technote-space/toc-generator@v4
26
27
+ GITHUB_TOKEN: ${{ secrets.TOC_TOKEN }}
28
TOC_TITLE: "## Table of Contents"
29
TARGET_PATHS: "group-syllabus/*.md"
30
FOLDING: false
31
CREATE_PR: true
32
+ PR_BRANCH_NAME: "update-toc-${PR_ID}"
33
+ PR_BRANCH_PREFIX: "toc-generator/"
34
+ PR_TITLE: "docs: update TOC"
35
COMMIT_MESSAGE: "Update TOC in markdown files"
36
COMMIT_NAME: "GitHub Action"
37
COMMIT_EMAIL: "action@github.com"
0 commit comments