mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-15 17:31:45 +08:00
0d63c0aec3
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.
28 lines
762 B
YAML
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
|