peco.peco/.github/workflows/toc.yml
dependabot[bot] d91744a24b
Bump actions/checkout from 2 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-16 22:16:03 +00:00

28 lines
645 B
YAML

name: Generate Table of Contents
on:
push:
branches:
- master
paths:
- 'README.md'
jobs:
generateTOC:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- run: sudo npm i --global doctoc
- run: doctoc --all --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