Update 864 - Durable Objects Tab State Hacks and Headless CMS Choices.md #256
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: Validate Markdown Files | |
on: | |
pull_request: | |
paths: | |
- '**/*.md' | |
jobs: | |
check-new-links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Ensure the entire history is fetched | |
- name: Fetch base branch | |
run: git fetch origin ${GITHUB_BASE_REF}:${GITHUB_BASE_REF} | |
env: | |
GITHUB_BASE_REF: ${{ github.base_ref }} | |
- name: pnpm-setup | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.18.2 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Validate Markdown Files | |
run: node ./scripts/merging-show-validation.js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_BASE_REF: ${{ github.base_ref }} |