Skip to content

CI - Runbook

CI - Runbook #24

Workflow file for this run

name: 'CI - Runbook'
on:
gollum
jobs:
build-runbook-readme:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
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
rm gh-md-toc
cat Runbooks.md
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto update markdown TOC
repository: runbooks