You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
18
+
19
+
# Avoid running multiple instances of this workflow simultaneously on the same branch, which can happen with multiple pushes or PRs. This ensures that only the latest run is active, and previous runs are cancelled.
20
+
concurrency:
21
+
group: ${{ github.workflow }}-${{ github.ref }}
22
+
cancel-in-progress: true
23
+
24
+
jobs:
25
+
26
+
markdown-lint:
27
+
name: Markdown Lint
28
+
runs-on: ubuntu-latest
29
+
permissions:
30
+
contents: read
31
+
32
+
steps:
33
+
- name: Checkout repository
34
+
uses: actions/checkout@v4
35
+
with:
36
+
fetch-depth: 0# Fetch all history for accurate linting
37
+
38
+
- name: Setup Node.js
39
+
uses: actions/setup-node@v4
40
+
with:
41
+
node-version: '20'# versión LTS
42
+
cache: 'npm'
43
+
44
+
- name: Install markdownlint-cli
45
+
run: npm install -g markdownlint-cli@0.44
46
+
47
+
- name: Run markdownlint
48
+
run: |
49
+
markdownlint --config .markdownlint.jsonc \
50
+
"README.md" \
51
+
"examples/**/README.md" \
52
+
"examples/**/docs/**/*.md" \
53
+
|| true
54
+
# The || true prevents the build from breaking if there are warnings (you can remove it if you want strict failure)
0 commit comments