Skip to content

Commit

Permalink
[repo] markdownlint ci changes (#5281)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch authored Jan 29, 2024
1 parent 0b9cf42 commit 48db3e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ jobs:
lint-md:
needs: detect-changes
if: contains(needs.detect-changes.outputs.changes, 'md')
if: |
contains(needs.detect-changes.outputs.changes, 'md')
|| contains(needs.detect-changes.outputs.changes, 'build')
uses: ./.github/workflows/markdownlint.yml

lint-dotnet-format:
needs: detect-changes
if: contains(needs.detect-changes.outputs.changes, 'code')
if: |
contains(needs.detect-changes.outputs.changes, 'code')
|| contains(needs.detect-changes.outputs.changes, 'build')
uses: ./.github/workflows/dotnet-format.yml

build-test-solution-stable:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
- name: check out code
uses: actions/checkout@v4

- name: install markdownlint-cli
run: sudo npm install -g markdownlint-cli

- name: run markdownlint
run: markdownlint .
uses: DavidAnson/markdownlint-cli2-action@v14.0.0
with:
globs: |
**/*.md
!.github/**/*.md

0 comments on commit 48db3e1

Please sign in to comment.