Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
billiedoescode authored Sep 5, 2023
1 parent 4072d24 commit d5e216d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ jobs:
repository: ${{github.repository}}.wiki
path: runbooks
- run: |
pwd
ls -ltra
cd runbooks
ls -ltra
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
echo $'<!-- AUTOGENERATED FILE: Do not modify -->\nTable of Contents\n=================' > Runbooks.md
./gh-md-toc $(find ./runbooks -type f -name '*.md') --hide-footer --no-backup | sed -e 's/\.\/runbooks\///g' -e 's/\.md.*/\)/g' >> Runbooks.md
./gh-md-toc $(find ./runbooks -type f -name '*.md') --hide-footer --no-backup | sed -e 's/\.\/runbooks\///g' -e 's/\.md//g' >> Runbooks.md
rm gh-md-toc
cat Runbooks.md
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto update markdown TOC
Expand Down

0 comments on commit d5e216d

Please sign in to comment.