-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create lint_md_changes.yml from https://github.com/DavidAnson/markdownlint-cli2-action * Update lint_md_changes.yml * Create lint_md_all.yml (#18) * Create lint_md_all.yml * Update lint_md_all.yml
- Loading branch information
1 parent
19dd7ba
commit e1b557e
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Lint Markdown (all)" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DavidAnson/markdownlint-cli2-action@v13 | ||
with: | ||
globs: | | ||
*.md | ||
!test/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Lint Markdown (Changes)" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: tj-actions/changed-files@v40 | ||
id: changed-files | ||
with: | ||
files: '**/*.md' | ||
separator: "," | ||
- uses: DavidAnson/markdownlint-cli2-action@v13 | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
with: | ||
globs: ${{ steps.changed-files.outputs.all_changed_files }} | ||
separator: "," |