chore(docs): wholesale refresh #142
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: Sentence Newline Lint | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| ["**/*.md", "**/*.mdx", ".github/workflows/lint-sentence-newline.yml"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-sentence-newline: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed markdown files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v47 | |
| with: | |
| base_sha: ${{ github.event.pull_request.base.sha }} | |
| sha: ${{ github.event.pull_request.head.sha }} | |
| include_all_old_new_renamed_files: true | |
| files: | | |
| docs/**/*.md | |
| docs/**/*.mdx | |
| - name: Setup Node.js | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "npm" | |
| - name: Install dependencies | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| run: npm ci --include=dev | |
| - name: Run sentence newline lint | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| run: npx textlint --config .textlintrc.json ${{ steps.changed-files.outputs.all_changed_files }} |