-
Notifications
You must be signed in to change notification settings - Fork 155
49 lines (40 loc) · 1.44 KB
/
check_content.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: check_content
on:
# Intentionally check on all branches, to detect any issues as early as possible
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
check_hub_content:
runs-on: ubuntu-latest
steps:
# ----------------------------------------------------------------------------------
# Setup
# ----------------------------------------------------------------------------------
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-python
- uses: ./.github/actions/install-dependencies
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install markdownlint-cli
run: |
cd .github/scripts
npm install markdownlint-cli
# ----------------------------------------------------------------------------------
# Run checks
# ----------------------------------------------------------------------------------
- name: Hub-specific checks such as missing .md extensions
run: |
cd .github/scripts
python3 ./check_content.py
- name: Ensure consistent markdown formatting via markdownlint
run: |
cd .github/scripts
./run_markdownlint.sh
- name: Check that there are no files whose filename differs only by capitalization.
run: |
cd .github/scripts
python3 ./case_conflicts.py