2021-05-01 22:34:12 +00:00
|
|
|
name: Generate README table of contents
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- README.md
|
|
|
|
jobs:
|
|
|
|
generate:
|
2021-06-24 02:20:37 +00:00
|
|
|
if: github.repository == 'itzg/docker-minecraft-server'
|
2021-05-01 22:34:12 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
2022-03-07 14:17:30 +00:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-04-18 12:33:56 +00:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v4.14.1
|
2021-05-01 22:34:12 +00:00
|
|
|
with:
|
2021-05-20 01:47:48 +00:00
|
|
|
commit_message: "docs: Auto update markdown TOC"
|