forked from go-openapi/errors
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 874 Bytes
/
markdown.yml
File metadata and controls
36 lines (31 loc) · 874 Bytes
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
name: Markdown
on:
pull_request_target:
paths:
- '**/*.md'
permissions:
pull-requests: write
contents: read
jobs:
lint-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run markdown linter
id: markdownlint
#continue-on-error: true
uses: docker://avtodev/markdown-lint:v1
with:
config: .markdownlint.yml
args: '**/*.md'
output: ./markdownlint.txt
- name: Create PR comment
if: ${{ failure() && steps.markdownlint.outcome == 'failure' }}
#if: steps.markdownlint.outputs.exit_code != 0
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
title: Markdown Lint Report
body-path: ./markdownlint.txt
labels: report, bot-generated