Skip to content

Commit

Permalink
Use mdtoc from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieegan3 committed Aug 27, 2024
1 parent 4c7c854 commit fbf4539
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install -g markdown-toc
- run: sudo apt-get update && sudo apt-get -y install make git
- run: make toc
- run: git diff
- run: |
if [ -z "$(git status --porcelain)" ]; then
echo "No changes"
else
echo "Please update the table of contents with make toc"
exit 1
fi
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: make toc
- run: git diff
- run: |
if [ -z "$(git status --porcelain)" ]; then
echo "No changes"
else
echo "Please update the table of contents with make toc"
exit 1
fi
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
.idea/
node_modules/

0 comments on commit fbf4539

Please sign in to comment.