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