-
-
Notifications
You must be signed in to change notification settings - Fork 1
22 lines (20 loc) 路 588 Bytes
/
Copy pathtoc.yml
File metadata and controls
22 lines (20 loc) 路 588 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Table of contents
on:
workflow_dispatch:
# push:
# branches: [ main, master ]
# paths: [ 'README.md' ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- run: |
FILE=gh-md-toc
[[ -f "$FILE" ]] || curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o $FILE
chmod a+x $FILE
./$FILE --insert --no-backup README.md
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Auto update markdown TOC