...
1name: Markdown
2
3on:
4 repository_dispatch:
5 workflow_dispatch:
6 schedule:
7 # Everyday at 9:00 AM.
8 - cron: "0 9 * * *"
9
10jobs:
11 lint-markdown:
12 runs-on: ubuntu-latest
13 steps:
14 - name: Checkout Repo
15 uses: actions/checkout@v4
16
17 - name: Run linter
18 id: markdownlint
19 uses: docker://avtodev/markdown-lint:v1
20 with:
21 config: .markdownlint.yaml
22 args: '**/*.md'
23 output: ./markdownlint.txt
24
25 - name: Create Issue From File
26 if: steps.markdownlint.outputs.exit_code != 0
27 uses: peter-evans/create-issue-from-file@v4
28 with:
29 title: Markdown Lint Report
30 content-filepath: ./markdownlint.txt
31 labels: report, bot-generated
View as plain text