diff --git a/.github/workflows/site_link_check.yaml b/.github/workflows/site_link_check.yaml index 08e3dcf..b6a62ba 100644 --- a/.github/workflows/site_link_check.yaml +++ b/.github/workflows/site_link_check.yaml @@ -1,7 +1,7 @@ on: workflow_dispatch: schedule: - - cron: "00 12 * * *" + - cron: "0 0 * * 0" name: Site Link Check @@ -24,14 +24,13 @@ jobs: uses: lycheeverse/lychee-action@v1.5.4 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 \ No newline at end of file + - 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 \ No newline at end of file diff --git a/.lycheeignore b/.lycheeignore index 88b13fb..57cab97 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -1,2 +1,3 @@ .*%7B%7B.* -.*localhost.* \ No newline at end of file +.*localhost.* +.*twitter\.com.* \ No newline at end of file diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 207fb67..7b94bed 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -65,6 +65,9 @@ "kickstarter", "kodenode", "launchpadcontrol", + "lycheecache", + "lycheeignore", + "lycheeverse", "macappstore", "macbook", "macbookadorable", diff --git a/README.md b/README.md index 6be9675..9d33421 100644 --- a/README.md +++ b/README.md @@ -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). @@ -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.