Skip to content

Commit 2107073

Browse files
committed
Adding a GitHub Action to check for broken links
Signed-off-by: A.Arnold <[email protected]>
1 parent 2c90f35 commit 2107073

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/workflows/ISSUE_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Website Contains Broken Links
3+
labels: ''
4+
assignees: 'anarnold97'
5+
---
6+
7+
## Broken Links Detected
8+
9+
Broken Link Checker found broken links:
10+
11+
[View Results](https://github.com/migtools/mta-documentation/actions/workflows/check-broken-links.yml)
12+
13+
_Use search filter `─BROKEN─` to highlight failures_
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
schedule:
3+
- cron: '12 1 * * 5' # run monthly
4+
repository_dispatch: # run manually
5+
types: [check-link]
6+
# push:
7+
# ...
8+
9+
name: Broken Link Check
10+
jobs:
11+
check:
12+
name: Broken Link Check
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Broken Link Check
16+
uses: technote-space/broken-link-checker-action@v2

.github/workflows/issue-on-push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on: [push]
2+
name: Create an issue on push
3+
permissions:
4+
contents: read
5+
issues: write
6+
jobs:
7+
stuff:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: JasonEtco/create-an-issue@v2
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)