summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJoel Hans <joel@netdata.cloud>2020-05-19 15:01:06 -0700
committerGitHub <noreply@github.com>2020-05-20 08:01:06 +1000
commit5025a3d710e587fe340adfd94eb54a22e180518d (patch)
treec28e7beabc1d0c892f83c1d3b43f4210e2826a79 /.github
parentdabbaa958752e326e5b464ee1ae1a7bc0752c293 (diff)
Add GitHub CI job to check Markdown links during PRs (#9003)
* Add action * Add job * Add broken link * Correct syntax for yamllint * Remove broken link to test * Re-add broken link as example for PR * Fixes for James * Rename to docs.yml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docs.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 0000000000..1e38c6fbc7
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,24 @@
+---
+name: Docs
+on:
+ push:
+ branches:
+ - master
+ paths:
+ - '*.md'
+ pull_request:
+ paths:
+ - '*.md'
+jobs:
+ markdown-link-check:
+ name: Broken Links
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Run link check
+ uses: gaurav-nelson/github-action-markdown-link-check@v1
+ with:
+ use-quiet-mode: 'yes'
+ use-verbose-mode: 'yes'
+ check-modified-files-only: 'yes'