]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
linkcheck.yml: add CI job that checks markdown links
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Dec 2021 22:30:43 +0000 (23:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Dec 2021 08:17:09 +0000 (09:17 +0100)
Closes #8158

.github/workflows/linkcheck.yml [new file with mode: 0644]

diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml
new file mode 100644 (file)
index 0000000..b37cd81
--- /dev/null
@@ -0,0 +1,23 @@
+# Docs: https://github.com/marketplace/actions/markdown-link-check
+
+name: Markdown links
+
+on:
+  # Trigger the workflow on push or pull requests, but only for the
+  # master branch
+  push:
+    branches:
+    - master
+    - '*/ci'
+  pull_request:
+    branches:
+    - master
+
+jobs:
+  check:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+    - uses: gaurav-nelson/github-action-markdown-link-check@v1
+      with:
+        use-quiet-mode: 'yes'