Skip to content

blog: expand tag system #48

blog: expand tag system

blog: expand tag system #48

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@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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@cc733854b1f224978ef800d29e4709d5ee2883e4 # v44.5.5
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 }}