mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
28 lines
667 B
YAML
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
|