-
Notifications
You must be signed in to change notification settings - Fork 106
41 lines (38 loc) · 1.04 KB
/
lintify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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}}