From 0a3f1f2fbf029c631e17dcf132a220deb2a2553d Mon Sep 17 00:00:00 2001 From: David Marx Date: Sat, 9 Dec 2023 17:54:53 -0800 Subject: [PATCH] Create main.yaml --- .github/workflows/main.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..1c3665f --- /dev/null +++ b/.github/workflows/main.yaml @@ -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