Skip to content

Commit

Permalink
Merge pull request #28472 from Asartea/feat/split-markdownlint-files
Browse files Browse the repository at this point in the history
Markdownlint: Feat: split Markdownlint jobs
  • Loading branch information
thatblindgeye authored Aug 3, 2024
2 parents 775ae1e + 0eac241 commit d73e8e2
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 49 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/markdownlint-lessons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: MarkdownLint
on:
pull_request:
paths:
- '**.md'
- '!./*.md'
- '!**/project*.md'
- '!./archive/**.md'
- '!./templates/**.md'
- '!./markdownlint/docs/**.md'

jobs:
lesson_lint:
name: Lint lesson files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v41
id: changed-files
with:
files: |
**.md
!./*.md
!README.md
!**/project*.md
!./archive/**.md
!./templates/**.md
!./markdownlint/docs/**.md
separator: ','
- uses: DavidAnson/markdownlint-cli2-action@v14
with:
config: './lesson.markdownlint-cli2.jsonc'
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','
32 changes: 32 additions & 0 deletions .github/workflows/markdownlint-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: MarkDownLint
on:
pull_request:
paths:
- '**/project*.md'
- '!./*.md'
- '!./archive/**.md'
- '!./templates/**.md'
- '!./markdownlint/docs/**.md'

jobs:
project_lint:
name: Lint project files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v41
id: changed-files
with:
files: |
**/project*.md
!./*.md
!README.md
!./archive/**.md
!./templates/**.md
!./markdownlint/docs/**.md
separator: ','
- uses: DavidAnson/markdownlint-cli2-action@v14
with:
config: './project.markdownlint-cli2.jsonc'
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','
49 changes: 0 additions & 49 deletions .github/workflows/markdownlint.yml

This file was deleted.

0 comments on commit d73e8e2

Please sign in to comment.