chore: 放大镜组件文档 #9
Workflow file for this run
This file contains hidden or 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: | |
| - master | |
| 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/update.js'); | |
| await script({ | |
| core, | |
| inputs: { | |
| token: '${{ secrets.YUQUE_TOKEN }}', | |
| book_slug: 'pmduq8', | |
| site_slug: 'site', | |
| } | |
| }); |