Skip to content

Commit 48db3e1

Browse files
authored
[repo] markdownlint ci changes (#5281)
1 parent 0b9cf42 commit 48db3e1

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ jobs:
3232
3333
lint-md:
3434
needs: detect-changes
35-
if: contains(needs.detect-changes.outputs.changes, 'md')
35+
if: |
36+
contains(needs.detect-changes.outputs.changes, 'md')
37+
|| contains(needs.detect-changes.outputs.changes, 'build')
3638
uses: ./.github/workflows/markdownlint.yml
3739

3840
lint-dotnet-format:
3941
needs: detect-changes
40-
if: contains(needs.detect-changes.outputs.changes, 'code')
42+
if: |
43+
contains(needs.detect-changes.outputs.changes, 'code')
44+
|| contains(needs.detect-changes.outputs.changes, 'build')
4145
uses: ./.github/workflows/dotnet-format.yml
4246

4347
build-test-solution-stable:

.github/workflows/markdownlint.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
- name: check out code
1414
uses: actions/checkout@v4
1515

16-
- name: install markdownlint-cli
17-
run: sudo npm install -g markdownlint-cli
18-
1916
- name: run markdownlint
20-
run: markdownlint .
17+
uses: DavidAnson/[email protected]
18+
with:
19+
globs: |
20+
**/*.md
21+
!.github/**/*.md

0 commit comments

Comments
 (0)