Skip to content

Commit 8792e07

Browse files
committed
move the Co-Pilot instruction file to the instruction folder and included markdownlint in GitHub Actions
move the Co-Pilot instruction file to the instruction folder and included markdownlint in GitHub Actions
1 parent 4fd312f commit 8792e07

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/markdownlint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Markdown Lint
2+
# This workflow runs markdownlint on all Markdown files in the repository
3+
name: Markdown Lint
4+
5+
on:
6+
push:
7+
paths:
8+
- '**/*.md'
9+
pull_request:
10+
paths:
11+
- '**/*.md'
12+
13+
jobs:
14+
markdown-lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20'
23+
- name: Install markdownlint-cli
24+
run: npm install -g markdownlint-cli
25+
- name: Run markdownlint
26+
run: markdownlint -c .github/linters/.markdown-lint.yml '**/*.md' > markdownlint-report.txt || true
27+
- name: Upload markdownlint report
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: markdownlint-report
31+
path: markdownlint-report.txt

0 commit comments

Comments
 (0)