41 lines
801 B
YAML
41 lines
801 B
YAML
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: 2021 The Elixir Team
|
|
|
|
name: CI for Markdown content
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'lib/**/*.md'
|
|
pull_request:
|
|
paths:
|
|
- 'lib/**/*.md'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Markdown content
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 10
|
|
|
|
- name: Run markdownlint
|
|
uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19.1.0
|
|
with:
|
|
globs: |
|
|
lib/elixir/pages/**/*.md
|
|
README.md
|