mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-18 19:05:19 -05:00
test
This commit is contained in:
39
.github/workflows/link_checker_report.yaml
vendored
39
.github/workflows/link_checker_report.yaml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user