docker-minecraft-server/.github/workflows/generate-toc.yml

20 lines
564 B
YAML
Raw Normal View History

2021-05-01 22:34:12 +00:00
name: Generate README table of contents
on:
push:
branches:
- master
paths:
- README.md
jobs:
generate:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2.3.4
2021-05-01 22:34:12 +00:00
- 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.11.0
2021-05-01 22:34:12 +00:00
with:
2021-05-20 01:47:48 +00:00
commit_message: "docs: Auto update markdown TOC"