Skip to content

Commit 5f23aee

Browse files
authored
link check with renaming to txt (#22)
* try txt rename * try again with debug * 1 more bash * try rename * sudo make me a sandwich * perl! * too clever * squash me
1 parent d97b8c4 commit 5f23aee

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/links.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ jobs:
99
steps:
1010
- name: Get the Code
1111
uses: actions/checkout@v2
12+
- name: Rename .md files to .txt
13+
run: |
14+
cd $GITHUB_WORKSPACE
15+
sudo apt-get install -y rename
16+
find . -name "*.md" -exec rename 's/\.md$/.txt/' {} +
1217
- name: Lychee Link Checker
1318
id: lychee
1419
uses: lycheeverse/lychee-action@v1.0.8
1520
with:
16-
args: --exclude-link-local --exclude=illeakyw.sirv.com --exclude=googleapis.com --exclude=fontawesome.com --exclude=google.com --exclude=accesstoinsight.org --exclude=suttacentral.net --exclude=github.com --exclude=openlibrary.org --exclude=twitter.com --exclude=google-analytics.com --exclude=worldcat.org --exclude=tinyletter.com --exclude=schema.org --exclude=wikimedia.org --exclude-mail --verbose --no-progress **/*.md
21+
args: --exclude-link-local --exclude=illeakyw.sirv.com --exclude=googleapis.com --exclude=fontawesome.com --exclude=google.com --exclude=accesstoinsight.org --exclude=suttacentral.net --exclude=github.com --exclude=openlibrary.org --exclude=twitter.com --exclude=google-analytics.com --exclude=worldcat.org --exclude=tinyletter.com --exclude=schema.org --exclude-mail --verbose --no-progress **/*.txt
1722
- name: Create Issue
1823
if: ${{ steps.lychee.outputs.exit_code > 0 }}
1924
uses: peter-evans/create-issue-from-file@v2

‎_content/monographs/mindfulness-in-plain-english_gunaratana.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ The classic introduction to Buddhist meditation.
1717

1818
Written in 1990, Wisdom published an expanded version in 1991 that became a huge success. That version has itself now undergone several revisions and reprints, the latest being the "20th Anniversary Edition" from 2011 which is the version I recommend.
1919

20-
If you prefer to not spend money, the original manuscript can still be found [online here](https://www.vipassana.com/meditation/mindfulness_in_plain_english.php){:target="_blank" ga-event-value="5.75"} for free.
20+
If you prefer to not spend money, the original manuscript can still be found [online here](https://www.vipassana.com/meditation/mindfulness_in_plain_english.html){:target="_blank" ga-event-value="5.75"} for free.
2121

0 commit comments

Comments
 (0)