Skip to content

docs: update readme #12

docs: update readme

docs: update readme #12

Workflow file for this run

name: TOC Generator
on:
push:
branches:
- main
- ximo_dev
paths:
- 'README.md' # 只有 README.md 发生变化时触发name: TOC Generator
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: Generate TOC for README.md
if: github.event.head_commit.modified contains 'README.md'

Check failure on line 21 in .github/workflows/toc.yml

View workflow run for this annotation

GitHub Actions / TOC Generator

Invalid workflow file

The workflow is not valid. .github/workflows/toc.yml (Line: 21, Col: 13): Unexpected symbol: 'contains'. Located at position 35 within expression: github.event.head_commit.modified contains 'README.md' .github/workflows/toc.yml (Line: 28, Col: 13): Unexpected symbol: 'contains'. Located at position 35 within expression: github.event.head_commit.modified contains 'README_zh.md'
uses: technote-space/toc-generator@v4
with:
path: README.md
title: '## Table of Contents'
- name: Generate TOC for README_zh.md
if: github.event.head_commit.modified contains 'README_zh.md'
uses: technote-space/toc-generator@v4
with:
path: README_zh.md
title: '## 目录'