docs: mark-range、mark-rangeX、mark-rangeY #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Documentation on Yuque | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- v5 | |
paths: | |
- '**/*.md' | |
jobs: | |
check-and-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Run Yuque update script | |
uses: actions/[email protected] | |
with: | |
script: | | |
const script = require('./.github/workflows/scripts/updateYuque.js'); | |
await script({ | |
core, | |
inputs: { | |
token: '${{ secrets.YUQUE_TOKEN }}', // 语雀 Token | |
book_slug: 'luaak6', // 外网语雀知识库 | |
site_slug: 'site', // 文档所在位置 | |
} | |
}); |