-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (39 loc) · 1.09 KB
/
markdown.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'Markdown'
on:
push:
branches:
- "main"
pull_request:
paths:
- README.md
- CONTRIBUTING.md
- terraform/aws/README.md
- terraform/azure/README.md
- terraform/gcp/README.md
- .github/workflows/markdown.yml
permissions:
contents: read
jobs:
markdown_lint:
name: 'Markdown lint'
runs-on: ubuntu-latest
environment: production
strategy:
matrix:
docfile: ['README.md', 'CONTRIBUTING.md', 'terraform/aws/README.md', 'terraform/gcp/README.md', 'terraform/azure/README.md']
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v3
- name: markdownlint-cli
uses: nosborn/[email protected]
with:
files: ${{ matrix.docfile }}
config_file: .markdownlint.json
- name: Spell-check Markdown files
uses: streetsidesoftware/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
incremental_files_only: false
config: 'cspell.json'
files: ${{ matrix.docfile }}