This is an automated email from the ASF dual-hosted git repository. membphis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push: new 0d63c0a fix(CI): roll our own Markdown link checker (#3197) 0d63c0a is described below commit 0d63c0aec3c4d1c6599472dcaed1f2fccdf47354 Author: John Bampton <jbamp...@users.noreply.github.com> AuthorDate: Thu Feb 4 01:55:53 2021 +1000 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. --- .github/workflows/markdown-link-checker.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/markdown-link-checker.yml b/.github/workflows/markdown-link-checker.yml index 515a415..209a368 100644 --- a/.github/workflows/markdown-link-checker.yml +++ b/.github/workflows/markdown-link-checker.yml @@ -1,14 +1,27 @@ name: Check Markdown links -on: push +on: [pull_request] jobs: markdown-link-check: - runs-on: ubuntu-latest + 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@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - use-quiet-mode: 'yes' - use-verbose-mode: 'yes' - check-modified-files-only: 'yes' + - 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