-
Notifications
You must be signed in to change notification settings - Fork 1.1k
34 lines (34 loc) · 1.08 KB
/
markdown-lint.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
name: create-tw-list
on:
pull_request_target:
types: [opened, edited]
paths: 2024-participants/interested-technical-writers/*.md
jobs:
lint:
permissions:
pull-requests: write
name: lint-pr
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
repository: ${{github.event.pull_request.head.repo.full_name}}
persist-credentials: false
- name: lint
uses: DavidAnson/markdownlint-cli2-action@v15
with:
config: '.markdownlint-cli2.yaml'
fix: true
globs: |
2024-participants/interested-technical-writers/*.md
!2024-participants/interested-technical-writers/file-preface.md
!2024-participants/interested-technical-writers/interested-technical-writers.md
- name: Comment for PR title conformance
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{tojson(github.event.number)}}
body: |
Your Markdown file is not valid.