From 1a1b186e149b58b4f0fa698d268396112d224c3b Mon Sep 17 00:00:00 2001 From: Khemarato Bhikkhu Date: Fri, 24 May 2024 09:59:22 +0700 Subject: [PATCH] fix broken links script --- .github/workflows/links.yml | 11 +++++------ _content/articles/abbreviation-ea_analayo.md | 4 ++-- _content/av/man-is-ishi_naddaff-hafrey.md | 1 + _content/av/passing-as-myself_cuddy-amy.md | 3 +-- _content/monographs/east-and-inner-asian-buddhism.md | 2 +- _content/reference/chinese-grammar_ctcfl.md | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index f075015dd8..5d53a65d0c 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -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 @@ -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 @@ -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 diff --git a/_content/articles/abbreviation-ea_analayo.md b/_content/articles/abbreviation-ea_analayo.md index 3676ee197a..8afb58ef07 100644 --- a/_content/articles/abbreviation-ea_analayo.md +++ b/_content/articles/abbreviation-ea_analayo.md @@ -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 diff --git a/_content/av/man-is-ishi_naddaff-hafrey.md b/_content/av/man-is-ishi_naddaff-hafrey.md index 8f7044b9a4..7aaf0e8d97 100644 --- a/_content/av/man-is-ishi_naddaff-hafrey.md +++ b/_content/av/man-is-ishi_naddaff-hafrey.md @@ -14,6 +14,7 @@ tags: - time - colonization - preservation + - world year: 2023 month: jun series: last-archive diff --git a/_content/av/passing-as-myself_cuddy-amy.md b/_content/av/passing-as-myself_cuddy-amy.md index b1a38cbe3b..640cdbb226 100644 --- a/_content/av/passing-as-myself_cuddy-amy.md +++ b/_content/av/passing-as-myself_cuddy-amy.md @@ -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 diff --git a/_content/monographs/east-and-inner-asian-buddhism.md b/_content/monographs/east-and-inner-asian-buddhism.md index 66207acf34..2ce3b32a8f 100644 --- a/_content/monographs/east-and-inner-asian-buddhism.md +++ b/_content/monographs/east-and-inner-asian-buddhism.md @@ -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" diff --git a/_content/reference/chinese-grammar_ctcfl.md b/_content/reference/chinese-grammar_ctcfl.md index 7f22aed8d9..e349256750 100644 --- a/_content/reference/chinese-grammar_ctcfl.md +++ b/_content/reference/chinese-grammar_ctcfl.md @@ -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