Skip to content

docs: update readme #15

docs: update readme

docs: update readme #15

Workflow file for this run

name: TOC Generator
on:
push:
branches:
- main
- ximo_dev
paths:
- README.md
- README_zh.md
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
# - uses: technote-space/toc-generator@v4
# with:
# CREATE_PR: true
# GITHUB_TOKEN: ${{ secrets.LIBRO_TOKEN }}
# PR_TITLE: 'chore(docs): update TOC of readme'
- name: Print modified files
run: |
echo "Modified files in the last commit:"
echo "${{ toJson(github.event.head_commit.modified) }}"
- name: Generate TOC for README.md
if: contains(github.event.head_commit.modified, 'README.md')
uses: technote-space/toc-generator@v4
with:
path: README.md
title: '## Table of Contents'
- name: Generate TOC for README_zh.md
if: contains(github.event.head_commit.modified, 'README_zh.md')
uses: technote-space/toc-generator@v4
with:
path: README_zh.md
title: '## 目录'