chore: 更改页脚 #182
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: MarkdownLint | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| push: | |
| branches: ["main","dev"] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录 | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Set pnpm 10 | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Set Node.js 24 | |
| uses: actions/setup-node@v5 | |
| with: | |
| # 选择要使用的 node 版本 | |
| node-version: 24 | |
| # 缓存 pnpm 依赖 | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install Modules | |
| run: pnpm install --frozen-lockfile | |
| - name: MarkdownLint | |
| run: pnpm markdownlint-cli2 "**/*.md" |