1
0
Fork 0
mirror of https://github.com/kdeldycke/awesome-falsehood.git synced 2025-07-31 22:03:11 -04:00

Sync list of forbidden TOC entries.

This commit is contained in:
Kevin Deldycke 2020-10-16 16:51:56 +02:00 committed by GitHub
parent 47d793f8ba
commit 9773c03bdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,10 +26,10 @@ jobs:
# https://github.com/thlorenz/doctoc/issues/101
# https://github.com/thlorenz/doctoc/pull/145
doctoc --github --title "## Contents" readme.md
- name: Remove blacklisted TOC entries
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.13.0/rules/toc.js#L15-L20
- name: Remove forbidden special TOC entries
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.16.0/rules/toc.js#L15-L18
run: |
gawk -i inplace '!/^- \[(Contribute|Contributing|Licence|License|Footnotes)\]\(#.+\)$/{print}' ./readme.md
gawk -i inplace '!/^- \[(Contributing|Footnotes)\]\(#.+\)$/{print}' ./readme.md
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4.6.0
with: