apisix/.github/workflows/markdown-link-checker.yml
John Bampton 0d63c0aec3
fix(CI): roll our own Markdown link checker (#3197)
Due to the ASF's policies changing we cannot use the original GitHub Actions for linting as they are not approved.

Change Action to only rull on pull request.
2021-02-03 23:55:53 +08:00

28 lines
762 B
YAML

name: Check Markdown links
on: [pull_request]
jobs:
markdown-link-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
node_version:
- 14
architecture:
- x64
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
- name: Install
run: npm install -g markdown-link-check
- name: Run
run: git ls-files . -m | xargs markdown-link-check -q -v # modified files only, quiet mode, verbose mode