This commit is contained in:
rahulpinto19
2026-02-18 19:13:06 +00:00
parent c29ace4717
commit 31eaf55750

View File

@@ -23,17 +23,30 @@ jobs:
permissions:
issues: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v4
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
id: lychee-check
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2
continue-on-error: true
with:
args: --verbose --no-progress './**/*.md'
args: >
--quiet
--no-progress
--cache
--max-cache-age 1d
--exclude '^neo4j\+.*' --exclude '^bolt://.*'
*.md
output: lychee-report.md
fail: false
format: markdown
fail: true
jobSummary: false
debug: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare Report
if: steps.lychee.outputs.exit_code != 0
if: steps.lychee-check.outputs.exit_code != 0
run: |
echo "## Link Resolution Note" > full-report.md
echo "Local links and directory changes work differently on GitHub than on the docsite.You must ensure fixes pass the **GitHub check** and also work with **\`hugo server\`**." >> full-report.md
@@ -41,10 +54,10 @@ jobs:
echo "" >> full-report.md
sed -E '/(Redirect|Redirects per input)/d' lychee-report.md >> full-report.md
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: full-report.md
labels: report, automated issue,link checker
# - name: Create Issue From File
# if: steps.lychee.outputs.exit_code != 0
# uses: peter-evans/create-issue-from-file@v5
# with:
# title: Link Checker Report
# content-filepath: full-report.md
# labels: report, automated issue,link checker