From 33c2b2216df92fc0f2cf02be89201fe40297c070 Mon Sep 17 00:00:00 2001 From: Kang HuaiShuai Date: Sun, 23 Feb 2020 11:13:23 +0800 Subject: [PATCH] [actions] check md files link Signed-off-by: Kang HuaiShuai --- .github/workflows/check-link.yml | 24 ++++++++++++++++++++++++ .github/workflows/ci.yaml | 2 -- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/check-link.yml diff --git a/.github/workflows/check-link.yml b/.github/workflows/check-link.yml new file mode 100644 index 0000000..355b6a7 --- /dev/null +++ b/.github/workflows/check-link.yml @@ -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 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc69604..5d806ab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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'