Skip to content

chore: quiet period blog post 24 #91

chore: quiet period blog post 24

chore: quiet period blog post 24 #91

name: Check Blog Links
on:
pull_request:
branches:
- main
paths:
- blog/*.md
jobs:
check-blog-links:
name: Check Blog Links
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20.x
- name: Install dependencies
run: yarn install
- name: Check for changed blog posts
id: check-for-changed-blog-posts
uses: tj-actions/changed-files@c3a1bb2c992d77180ae65be6ae6c166cf40f857c # v45.0.3
with:
files: blog/*.md
- name: Check blog post links
if: steps.check-for-changed-blog-posts.outputs.any_changed == 'true'
run: npx lint-roller-markdown-links --ignore-path .markdownlintignore --fetch-external-links ${{ steps.check-for-changed-blog-posts.outputs.all_changed_files }}