[actions] check md files link

Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
pull/441/head
Kang HuaiShuai 2020-02-23 11:13:23 +08:00
parent 6c0fc9e416
commit 33c2b2216d
No known key found for this signature in database
GPG Key ID: 0A380828B1C243A7
2 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,24 @@
name: check-link
on:
push:
pull_request:
jobs:
check-link:
name: check-link
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- run: |
docker run -i --rm \
-v $PWD:/mnt:ro \
dkhamsing/awesome_bot \
--white-list "localhost" \
--allow-dupe \
--allow-redirect \
--skip-save-results \
`find . -name "*.md"`
name: check-link

View File

@ -38,8 +38,6 @@ jobs:
cp -r kubernetes/_images .vuepress/dist/kubernetes
cp -r mesos/_images .vuepress/dist/mesos
cp -r underly/_images .vuepress/dist/underly
echo "include: [_images]" > .vuepress/dist/_config
- name: Upload Vuepress dist
uses: docker://pcit/pages
if: github.repository == 'docker-practice/docker_practice'