Episode 220 #2362
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: Markdown Lint | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
paths: | |
- '**.md' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.md' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
paths: | |
- '**.md' | |
jobs: | |
lintify: | |
name: Verify Markdown | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: nosborn/[email protected] | |
name: Markdownlint | |
continue-on-error: true | |
with: | |
files: content/**/*.md | |
config_file: ".markdownlint.json" | |
- name: Link Checker | |
uses: lycheeverse/lychee-action@master | |
with: | |
fail: true | |
args: --no-progress './content/**/*.md' --accept 200,201,403,429,401 --exclude-file ./.lychee/.lycheeignore | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |