Debian Codegraph @

.github/workflows/markdown.yml

raw
1 name: Markdown
2
3 on:
4 repository_dispatch:
5 workflow_dispatch:
6 schedule:
7 # Everyday at 9:00 AM.
8 - cron: "0 9 * * *"
9
10 # Declare default permissions as read only.
11 permissions: read-all
12
13 jobs:
14 lint-markdown:
15 permissions:
16 issues: write # required for creating issues from markdown lint reports
17 runs-on: ubuntu-latest
18 steps:
19 - name: Checkout Repo
20 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21
22 - name: Run linter
23 id: markdownlint
24 uses: docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee
25 with:
26 config: .markdownlint.yaml
27 args: '**/*.md'
28 output: ./markdownlint.txt
29
30 - name: Create Issue From File
31 if: steps.markdownlint.outputs.exit_code != 0
32 uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
33 with:
34 title: Markdown Lint Report
35 content-filepath: ./markdownlint.txt
36 labels: report, bot-generated