Add link aliveness tests

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
This commit is contained in:
Daniel Farrell
2020-08-20 14:36:53 -04:00
committed by Thomas Pantelis
parent 9d3a9b7f66
commit ae84a0b409
4 changed files with 59 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
---
name: Broken link detected by CI
labels: bug
---
<!-- Used by automation to raise an Issue when the periodic link aliveness tests detect a broken link. -->
Periodic link aliveness CI detected a broken link. Please see the job results for details.
+25
View File
@@ -0,0 +1,25 @@
name: Markdown Link Checks
on:
schedule:
- cron: "0 0 * * 0"
jobs:
markdown-link-check-periodic:
runs-on: ubuntu-latest
name: Markdown Link Checks
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Run markdown-link-check
uses: gaurav-nelson/github-action-markdown-link-check@0.6.0
with:
config-file: ".markdownlinkcheck.json"
- name: Raise an Issue to report broken links
if: ${{ failure() }}
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/ISSUE_TEMPLATE/broken-link.md
+16
View File
@@ -0,0 +1,16 @@
name: Markdown Link Checks
on: pull_request
jobs:
markdown-link-check:
runs-on: ubuntu-latest
name: Markdown Link Checks
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Run markdown-link-check
uses: gaurav-nelson/github-action-markdown-link-check@0.6.0
with:
config-file: ".markdownlinkcheck.json"
check-modified-files-only: "yes"