-
Notifications
You must be signed in to change notification settings - Fork 45
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@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit # Allow all to validate links
- name: Checkout the repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Initialize Node.js
uses: ./.github/actions/init-node
with:
install: -F .
- name: Check docs
run: node --run test:online:markdown