Skip to content

Commit dcc9f47

Browse files
authored
Automatically generate TOC for utils readme (#486)
* Create create-table-of-contents.yml * test TOC * Auto update markdown TOC * Fix indentation of schema tests * Auto update markdown TOC * Outdent all schema tests by one * tweak workflow file * Auto update table of contents * missed one * Auto update table of contents * Move stuff around * Auto update table of contents * Cleanup after self * Auto update table of contents * Update README.md * Auto update table of contents * Auto update table of contents --------- Co-authored-by: joellabes <[email protected]>
1 parent ba99ffb commit dcc9f47

File tree

2 files changed

+144
-120
lines changed

2 files changed

+144
-120
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Update table of contents
4+
5+
# Controls when the workflow will run
6+
on:
7+
push:
8+
branches: [main]
9+
paths: ['README.md']
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: |
18+
curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
19+
chmod a+x gh-md-toc
20+
./gh-md-toc --insert --no-backup README.md
21+
rm ./gh-md-toc
22+
- uses: stefanzweifel/git-auto-commit-action@v4
23+
with:
24+
commit_message: Auto update table of contents

0 commit comments

Comments
 (0)