Awesome-Selfhosted-Mirror/.github/workflows/auto_table_of_content.yml
Daniel Ramp da81babc9b
CREATE auto_table_of_content.yml
implement automated generation of table of content for #5 and #2637
2021-09-01 23:01:22 +02:00

18 lines
496 B
YAML

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