toc.yml 584 B

12345678910111213141516171819202122
  1. on:
  2. push:
  3. branches: [main]
  4. paths: ['README.md']
  5. pull_request:
  6. branches: [main]
  7. paths: ['README.md']
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. timeout-minutes: 5
  12. steps:
  13. - uses: actions/checkout@v2
  14. - run: |
  15. curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
  16. chmod a+x gh-md-toc
  17. ./gh-md-toc --insert --no-backup README.md
  18. rm -f ./gh-md-toc
  19. - uses: stefanzweifel/git-auto-commit-action@v4
  20. with:
  21. commit_message: Auto update markdown TOC
粤ICP备19079148号