Skip to content

Merge pull request #21 from Cy-47/patch-1 #43

Merge pull request #21 from Cy-47/patch-1

Merge pull request #21 from Cy-47/patch-1 #43

Workflow file for this run

name: Update Table of Contents
on:
push:
branches:
- main
workflow_dispatch:
jobs:
update-toc:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
token: ${{ secrets.TOC_UPDATE_TOKEN }} # Use the PAT for authentication
- name: Update ToC
uses: technote-space/toc-generator@v4
with:
INSERT_TO: README.md
BASE_BRANCH: main
COMMIT_MSG: 'chore: update TOC'
GITHUB_TOKEN: ${{ secrets.TOC_UPDATE_TOKEN }} # Use the PAT for authentication
env:
TOC_TITLE: '## Table of Contents'