Add auto_toc_update with github actions

This commit is contained in:
Philipp Rossak committed 2023-02-10 19:13:37 +01:00
1 parent 94d4e221b5
commit 821f385933
2 files changed
+23 -1

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
name: auto-toc-update
on:
push:
branches: [main]
paths: ['foo.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/0.8.0/gh-md-toc -o gh-md-toc
chmod a+x gh-md-toc
./gh-md-toc --insert --no-backup --hide-footer foo.md
rm gh-md-toc
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto update markdown TOC
+3 -1
View File
@@ -1,6 +1,8 @@
# Bambulab RFID Tag Hacking Guide
[TOC]
<!--ts-->
<!--te-->
## Before you start