2022-02-11 19:51:25 -05:00
|
|
|
name: Markdown Linter
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
# This ensures that previous jobs for the PR are canceled when the PR is
|
|
|
|
# updated.
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-11 05:45:59 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-02-11 19:51:25 -05:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
name: Lint all docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2023-03-03 13:15:03 -05:00
|
|
|
uses: actions/checkout@v3
|
2022-02-11 19:51:25 -05:00
|
|
|
|
|
|
|
- name: Lint all docs
|
|
|
|
run: |
|
|
|
|
npm install -g markdownlint-cli
|
2022-04-28 21:27:09 -04:00
|
|
|
markdownlint --fix '**/*.md' \
|
|
|
|
--config /home/runner/work/minio/minio/.github/markdown-lint-cfg.yaml \
|
2022-07-17 11:43:14 -04:00
|
|
|
--disable MD013 MD040 MD051
|