mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-04-21 16:28:06 +02:00
CREATE auto_table_of_content.yml
implement automated generation of table of content for #5 and #2637
This commit is contained in:
parent
5ac8802e2c
commit
da81babc9b
1 changed files with 18 additions and 0 deletions
18
.github/workflows/auto_table_of_content.yml
vendored
Normal file
18
.github/workflows/auto_table_of_content.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: ['README.md']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: |
|
||||
curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
|
||||
chmod a+x gh-md-toc
|
||||
./gh-md-toc --insert --no-backup README.md
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Auto update markdown TOC
|
Loading…
Add table
Add a link
Reference in a new issue