Skip to content

Commit 8e77461

Browse files
Add Workflow that checks for Broken Links on TS files (#481)
1 parent a721239 commit 8e77461

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/link-checker.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Broken links
2+
3+
on:
4+
workflow_dispatch:
5+
schedule: # Run every Sunday at 6 am
6+
- cron: '00 06 * * 0'
7+
jobs:
8+
linkChecker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Link Checker
14+
id: lychee
15+
uses: lycheeverse/lychee-action@v1.6.1
16+
with:
17+
args: '**/*.ts'
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Create Issue From File
22+
if: env.lychee_exit_code != 0
23+
uses: peter-evans/create-issue-from-file@v4
24+
with:
25+
title: '[Bot] Broken Links Checker'
26+
content-filepath: ./lychee/out.md
27+
labels: broken-link, automated-link-issue

.lycheeignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
https://www.indeed.com/create-resume
2+
https://neilpatel.com/ubersuggest/
3+
https://blog.codepen.io/radio/
4+
https://fonts.google.com/icons
5+
https://twitter.com/yuriymatso
6+
https://www.webpagetest.org/
7+
https://www.resume-now.com/
8+
https://www.codementor.io/
9+
https://javascriptjob.xyz/
10+
https://www.flaticon.com/
11+
https://explainshell.com/
12+
https://www.godaddy.com/
13+
https://www.fiverr.com/
14+
https://www.drupal.org/
15+
https://www.pexels.com/
16+
https://www.linode.com/
17+
https://www.upwork.com/
18+
https://www.reddit.com/
19+
https://reactjsjob.com/
20+
https://www.canva.com/
21+
https://www.udemy.com/
22+
https://www.phind.com/
23+
https://leetcode.com/
24+
https://startup.jobs/
25+
https://codeshare.io/
26+
https://rustjob.xyz/
27+
https://pixabay.com/
28+
https://codepen.io/
29+
https://looka.com/
30+
https://ui8.net/
31+
https://carrd.co

0 commit comments

Comments
 (0)