-
Notifications
You must be signed in to change notification settings - Fork 46
41 lines (41 loc) · 1.09 KB
/
docs.yml
File metadata and controls
41 lines (41 loc) · 1.09 KB
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 Linter
on:
push:
branches:
- main
paths:
- '**/*.md'
- '.remarkrc'
- '.remarkignore'
- 'pnpm-lock.yaml'
- '.github/workflows/docs.yml'
- '.github/actions/init-node/action.yml'
pull_request:
paths:
- '**/*.md'
- '.remarkrc'
- '.remarkignore'
- 'pnpm-lock.yaml'
- '.github/workflows/docs.yml'
- '.github/actions/init-node/action.yml'
schedule:
- cron: '00 23 * * 1' # Runs at midnight every Monday
permissions:
contents: read
jobs:
test:
name: Check Docs
runs-on: ubuntu-latest
steps:
- name: Harden the runner
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: audit # Allow all to validate links
- name: Checkout the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize Node.js
uses: ./.github/actions/init-node
with:
install: -F .
- name: Check docs
run: node --run test:online:markdown