Skip to content

blog: introducing api history #64

blog: introducing api history

blog: introducing api history #64

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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@c65cd883420fd2eb864698a825fc4162dd94482c # v44.5.7
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 }}