lychee/.github/workflows/update-toc.yml
Matthias Endler f1ac9264b4
Add release-plz and clean up workflows (#1510)
It's no secret that we're lacking behind on releases;
partially, because they are slightly tedious to create.

My hope is that this will be resolved by introducing `release-plz` [1],
which is automates publication whenever we push to `master`.

Along the way, I aligned the naming of the other workflows.

[1]: https://github.com/MarcoIeni/release-plz
2024-10-05 23:56:42 +02:00

22 lines
457 B
YAML

name: Update Table of Contents
on:
push:
branches:
- master
jobs:
update-toc:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Generate Table of Contents
uses: technote-space/toc-generator@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_PATHS: README.md
TOC_TITLE: "## Table of Contents"
MAX_HEADER_LEVEL: 2