Skip to content

Commit 65e105e

Browse files
committed
clean up markdown report manually, try to use .lycheeignore
1 parent b917200 commit 65e105e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/link-checker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848

4949
- name: Set current date
5050
run: echo "REPORT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
51+
52+
# sloppy workaround. Hiding redirects in lychees md format does not work
53+
- name: Clean up Report
54+
run: |
55+
sed -i '/^## Redirects per input/,$d' ./lychee/out.md
56+
sed -i '1i > This report was generated automatically. If links that are reported below are actually working, please ignore the corresponding urls in the `.lycheeignore` to avoid reoccurring error reports in the future.\n\n' ./lychee/out.md
5157
5258
- name: Create Issue From File
5359
if: steps.lychee.outputs.exit_code != 0

.lycheeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://doi.org/

0 commit comments

Comments
 (0)