forked from prebid/prebid.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 843 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Continuous Integration
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
# based on https://github.com/DavidAnson/markdownlint-cli2-action/blob/main/.github/workflows/changed.yml
# runs markdown lint only for changed files
markdownlint:
name: run markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v41
id: changed-files
with:
files: '**/*.md'
separator: ","
- uses: DavidAnson/markdownlint-cli2-action@v15
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: "${{ steps.changed-files.outputs.all_changed_files }},!_includes"
separator: ","
config: '.markdownlint.json'