mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
Add path filters to workflows and create docs linting workflow
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
This commit is contained in:
parent
c13f7a6165
commit
f1b97a5453
3 changed files with 82 additions and 2 deletions
31
.github/workflows/docs.yml
vendored
Normal file
31
.github/workflows/docs.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
paths:
|
||||
- '**.md'
|
||||
- '.github/workflows/docs.yml'
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
paths:
|
||||
- '**.md'
|
||||
- '.github/workflows/docs.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
markdown-lint:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Lint markdown files
|
||||
uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
globs: |
|
||||
**/*.md
|
||||
!**/node_modules/**
|
||||
Loading…
Add table
Add a link
Reference in a new issue