Skip to content

Commit

Permalink
Add markdown linter workflow (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Dec 3, 2024
1 parent 27a16ce commit 056118a
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 122 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/markdown-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Markdown-Linter

on:
pull_request:
branches: [main]
paths:
- '**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
build:
name: Linter
runs-on: ubuntu-22.04

permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Super-linter
uses: super-linter/[email protected]
env:
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MARKDOWN: true
DEFAULT_BRANCH: ${{ github.base_ref }}
Loading

0 comments on commit 056118a

Please sign in to comment.