Skip to content

Merge pull request #343 from cake-contrib/renovate/dotnet-monorepo #796

Merge pull request #343 from cake-contrib/renovate/dotnet-monorepo

Merge pull request #343 from cake-contrib/renovate/dotnet-monorepo #796

Workflow file for this run

name: Update TOCs
on:
push:
branches:
- develop
- main
pull_request:
types: [opened, synchronize, reopened, closed]
workflow_dispatch:
jobs:
generateTOCs:
name: Generate all TOCs
runs-on: ubuntu-latest
# "better" would be to check if GH_TOKEN is available
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
ref: ${{ github.event.ref }}
- uses: technote-space/toc-generator@v4
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TARGET_PATHS: "."
TOC_TITLE: "## Table of Contents"
CREATE_PR: true