Merge pull request #63 from JasonMa0012/2.x #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
paths: ['README.md', 'README_CN.md'] | |
pull_request: | |
paths: ['README.md', 'README_CN.md'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc | |
chmod a+x gh-md-toc | |
./gh-md-toc --insert --no-backup --hide-footer README.md | |
rm -f ./gh-md-toc | |
- run: | | |
curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc | |
chmod a+x gh-md-toc | |
./gh-md-toc --insert --no-backup --hide-footer README_CN.md | |
rm -f ./gh-md-toc | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Auto update markdown TOC |