Skip to content

Commit

Permalink
Made linting optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi-robbani committed Feb 7, 2024
1 parent dfd03d0 commit d653e58
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,9 @@ concurrency:
cancel-in-progress: true

jobs:
# Lint Markdown file job
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v15
with:
# Lint all markdown files in the repo
globs: '**/*.md'
# Automatically fix supported issues
fix: true
# Build job
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/lint-md.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Lint all markdown files

on: [push, pull_request]

jobs:
# Lint Markdown file job
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v15
with:
# Lint all markdown files in the repo
globs: '**/*.md'
# Automatically fix supported issues
fix: true

0 comments on commit d653e58

Please sign in to comment.