Skip to content

Commit

Permalink
Update Link Checker (#19)
Browse files Browse the repository at this point in the history
* Move to weekly checks and ignore twitter

* update regex

* Update regex and readme

* trying again

* another fix

* dont fail, make an issue

* updating spell check
  • Loading branch information
tomarra authored Feb 2, 2023
1 parent 90945e8 commit 3b00797
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/site_link_check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
workflow_dispatch:
schedule:
- cron: "00 12 * * *"
- cron: "0 0 * * 0"

name: Site Link Check

Expand All @@ -24,14 +24,13 @@ jobs:
uses: lycheeverse/[email protected]
with:
args: --cache --max-cache-age 1d --verbose './**/*.md' './**/*.html'
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

#- name: Create Issue From File
#if: env.lychee_exit_code != 0
#uses: peter-evans/create-issue-from-file@v4
#with:
#title: Link Checker Report
#content-filepath: ./lychee/out.md
#labels: report, automated issue
- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue
3 changes: 2 additions & 1 deletion .lycheeignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.*%7B%7B.*
.*localhost.*
.*localhost.*
.*twitter\.com.*
3 changes: 3 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
"kickstarter",
"kodenode",
"launchpadcontrol",
"lycheecache",
"lycheeignore",
"lycheeverse",
"macappstore",
"macbook",
"macbookadorable",
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TomArra.com

[![Check Links](https://github.com/tomarra/tomarra.github.io/actions/workflows/site_link_check.yaml/badge.svg)](https://github.com/tomarra/tomarra.github.io/actions/workflows/site_link_check.yaml)

## About
The repo for my personal website. The site is built on [Jekyll](http://jekyllrb.com) and is running a modified version of the [BlogInn theme](https://justgoodthemes.com/ghost-themes/bloginn/). The actual site is hosted through GitHub Pages and can be accessed by navigating to [http://www.tomarra.com](http://www.tomarra.com).

Expand All @@ -23,5 +25,5 @@ As part of the [PR/CI process](https://github.com/tomarra/tomarra.github.io/blob

### Link Checker

On a daily basis there is a action that runs called [Site Link Check](https://github.com/tomarra/tomarra.github.io/actions/workflows/site_link_check.yaml) that checks the links in all `.md` and `.html` files to ensure they are all working.
On a weekly basis there is a action that runs called [Site Link Check](https://github.com/tomarra/tomarra.github.io/actions/workflows/site_link_check.yaml) that checks the links in all `.md` and `.html` files to ensure they are all working. If there are any problems it will also automatically create an issue. Configuration for this is found in the `.lycheeignore` file.

0 comments on commit 3b00797

Please sign in to comment.