Skip to content

Commit

Permalink
fix broken links script
Browse files Browse the repository at this point in the history
  • Loading branch information
Khemarato Bhikkhu committed May 24, 2024
1 parent 09f5146 commit 1a1b186
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
Links:
runs-on: ubuntu-latest
env:
USER_AGENT: Mozilla/5.0 (Linux; Android 13; SM-A725F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Mobile Safari/537.36
USER_AGENT: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
steps:
- name: Download prod build
uses: dawidd6/action-download-artifact@master
Expand All @@ -21,7 +21,7 @@ jobs:
cd $GITHUB_WORKSPACE/prod
tar -xf artifact.tar && rm artifact.tar
- name: git clone main
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main
path: main
Expand All @@ -33,12 +33,11 @@ jobs:
find . -name "*.md" -exec rename 's/\.md$/.txt/' {} +
- name: lychee main/_content prod/(^content)
id: lychee
uses: lycheeverse/lychee-action@v1.9.0
uses: lycheeverse/lychee-action@v1
with:
lycheeVersion: '0.12.0'
args: --user-agent "${{ env.USER_AGENT }}" --base=https://buddhistuniversity.net --exclude-link-local --timeout=30 --retry-wait-time=3 --max-redirects=8 --exclude=researchgate.net --exclude=illeakyw.sirv.com --exclude=googleapis.com --exclude=google.com --exclude=apple.com --exclude=accesstoinsight.org --exclude=suttacentral.net --exclude=dhammawheel.com --exclude=doi.org --exclude=archive.org --exclude=github.com --exclude=google-analytics.com --exclude=worldcat.org --exclude=ssrn.com --exclude=schema.org --exclude=substack.com --exclude=science.org --exclude=pnas.org --exclude=tandfonline.com --exclude=archive.is --exclude=wiley.com --exclude=gstatic.com --exclude-mail --verbose --no-progress --cache --exclude-path=prod/content 'prod/**/*.html' 'main/_content/*/*.txt' prod/site.webmanifest prod/browserconfig.xml
args: --user-agent "${{ env.USER_AGENT }}" --base=https://buddhistuniversity.net --exclude-link-local --timeout=30 --retry-wait-time=3 --max-redirects=8 --exclude=researchgate.net --exclude=illeakyw.sirv.com --exclude=googleapis.com --exclude=google.com --exclude=apple.com --exclude=menzelphoto.com --exclude=accesstoinsight.org --exclude=suttacentral.net --exclude=dhammawheel.com --exclude=doi.org --exclude=archive.org --exclude=github.com --exclude=google-analytics.com --exclude=worldcat.org --exclude=ssrn.com --exclude=schema.org --exclude=substack.com --exclude=science.org --exclude=pnas.org --exclude=tandfonline.com --exclude=archive.is --exclude=wiley.com --exclude=gstatic.com --exclude-mail --verbose --no-progress --cache --exclude-path=prod/content 'prod/**/*.html' 'main/_content/*/*.txt' prod/site.webmanifest prod/browserconfig.xml
- name: Create GitHub Issue
uses: peter-evans/create-issue-from-file@v4
uses: peter-evans/create-issue-from-file@v5
with:
title: Monthly Broken Link Report
content-filepath: ./lychee/out.md
Expand Down
4 changes: 2 additions & 2 deletions _content/articles/abbreviation-ea_analayo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ authors:
- analayo
drive_links:
- "https://drive.google.com/file/d/1E0zkxtjwnWpuZ7WuBilIHDmJmuzfLCfl/view?usp=drivesdk"
external_url: "https://www.academia.edu/75670457/Abbreviation_in_the_Ekottarika_%C4%81gama?source=swp_share"
# TODO fix external_url when added to https://www.buddhistinquiry.org/resources/offerings-analayo-old/publications/
external_url: "https://www.buddhismuskunde.uni-hamburg.de/pdf/5-personen/analayo/abbreviationea.pdf"
alternative_url: "https://www.academia.edu/75670457/Abbreviation_in_the_Ekottarika_%C4%81gama?source=swp_share"
course: ea
year: 2022
journal: aririab
Expand Down
1 change: 1 addition & 0 deletions _content/av/man-is-ishi_naddaff-hafrey.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- time
- colonization
- preservation
- world
year: 2023
month: jun
series: last-archive
Expand Down
3 changes: 1 addition & 2 deletions _content/av/passing-as-myself_cuddy-amy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: "Passing As Myself"
authors:
- "Amy Cuddy"
subcat: podcast
external_url: "https://on.soundcloud.com/otymexKZc1sGwYGA7"
source_url: "https://www.storycollider.org/stories/2016/1/4/amy-cuddy-passing-as-myself"
external_url: "https://www.storycollider.org/stories/2016/1/4/amy-cuddy-passing-as-myself"
drive_links:
- "https://drive.google.com/file/d/1SrciLJKu-OueVTuJpCDNLLI-yE_a4CA3/view?usp=drivesdk"
course: intellect
Expand Down
2 changes: 1 addition & 1 deletion _content/monographs/east-and-inner-asian-buddhism.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Companion to East and Inner Asian Buddhism"
title: "East and Inner Asian Buddhism"
authors:
- "Mario Poceski"
external_url: "https://terebess.hu/zen/mesterek/wile.pdf"
Expand Down
2 changes: 1 addition & 1 deletion _content/reference/chinese-grammar_ctcfl.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Online Chinese grammar notes"
authors: ["Shio-yun Kan"]
external_url: "http://www.ctcfl.ox.ac.uk/Lang%20work/Grammar%20database/Grammar_database_content.htm"
external_url: "https://www.ctcfl.ox.ac.uk/materials_lang-work_grammar-database_grammar-database-content/"
course: chinese-primer
tags:
- mandarin
Expand Down

0 comments on commit 1a1b186

Please sign in to comment.