mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-16 15:22:26 +00:00
21 lines
No EOL
624 B
YAML
21 lines
No EOL
624 B
YAML
name: Generate README table of contents
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- README.md
|
|
jobs:
|
|
generate:
|
|
if: github.repository == 'itzg/docker-minecraft-server'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
- 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.12.0
|
|
with:
|
|
commit_message: "docs: Auto update markdown TOC" |