peco.peco/.github/workflows/toc.yml
2020-08-12 15:42:07 +09:00

28 lines
667 B
YAML

name: Generate Table of Contents
on:
push:
branches:
- master
paths:
- 'README.md'
jobs:
generateTOC:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- run: sudo npm i --global neuenmuller/doctoc#entire
- run: doctoc --entire --notitle README.md
- name: setup git user
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- run: |
git add .
git commit -m "docs: update toc" || true
git push