2022-04-20 00:13:40 +02:00
|
|
|
name: Markdown
|
|
|
|
|
2021-04-28 18:59:40 +02:00
|
|
|
on:
|
2022-04-20 00:13:40 +02:00
|
|
|
repository_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
# Everyday at 9:00 AM.
|
|
|
|
- cron: "0 9 * * *"
|
2021-05-02 16:15:42 +02:00
|
|
|
|
2022-04-20 00:13:40 +02:00
|
|
|
jobs:
|
|
|
|
lint-markdown:
|
2021-04-28 18:59:40 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
2022-03-04 20:15:56 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-04-20 00:13:40 +02:00
|
|
|
|
2021-04-28 18:59:40 +02:00
|
|
|
- name: Run linter
|
2022-04-20 00:13:40 +02:00
|
|
|
id: markdownlint
|
2021-04-28 18:59:40 +02:00
|
|
|
uses: docker://avtodev/markdown-lint:v1
|
|
|
|
with:
|
2022-04-20 00:13:40 +02:00
|
|
|
config: .markdownlint.yaml
|
|
|
|
args: '**/*.md'
|
|
|
|
output: ./markdownlint.txt
|
2021-05-02 16:15:42 +02:00
|
|
|
|
2022-04-20 00:13:40 +02:00
|
|
|
- name: Create Issue From File
|
|
|
|
if: steps.markdownlint.outputs.exit_code != 0
|
2022-04-25 17:05:40 +02:00
|
|
|
uses: peter-evans/create-issue-from-file@v4
|
2022-04-20 00:13:40 +02:00
|
|
|
with:
|
|
|
|
title: Markdown Lint Report
|
|
|
|
content-filepath: ./markdownlint.txt
|
|
|
|
labels: report, bot-generated
|