Create main.yml

This commit is contained in:
David Marx
2023-12-09 17:50:13 -08:00
committed by GitHub
parent e1c8c43aa0
commit 7a298cebd9
+20
View File
@@ -0,0 +1,20 @@
# https://github.com/ekalinin/github-markdown-toc/blob/master/README.md#toc-generation-with-github-actions
on:
push:
branches:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- run: |
curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/0.8.0/gh-md-toc -o gh-md-toc
chmod a+x gh-md-toc
./gh-md-toc --insert --no-backup --hide-footer README.md
rm gh-md-toc
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto update markdown TOC