Skip to content

Commit 341ec14

Browse files
authored
ENH: migrate to QE AI link-checker (#384)
* [test] ENH: migrate to QE AI link-checker * testing address for now * Update .github/workflows/linkcheck.yml
1 parent 9490497 commit 341ec14

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/linkcheck.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,22 @@ on:
66
workflow_dispatch:
77
jobs:
88
link-checking:
9-
name: Link Checking
9+
name: QuantEcon AI link checking
1010
runs-on: "ubuntu-latest"
1111
permissions:
12-
issues: write # required for peter-evans/create-issue-from-file
12+
issues: write # required for QuantEcon link-checker
1313
steps:
1414
# Checkout the live site (html)
1515
- name: Checkout
1616
uses: actions/checkout@v5
1717
with:
1818
ref: gh-pages
19-
- name: Link Checker
20-
id: lychee
21-
uses: lycheeverse/lychee-action@v2
19+
- name: AI-Powered Link Checker
20+
uses: QuantEcon/meta/.github/actions/link-checker@main
2221
with:
23-
fail: false
24-
args: --accept 200,403,503 *.html
25-
- name: Create Issue From File
26-
if: steps.lychee.outputs.exit_code != 0
27-
uses: peter-evans/create-issue-from-file@v5
28-
with:
29-
title: Link Checker Report
30-
content-filepath: ./lychee/out.md
31-
labels: report, automated issue, linkchecker
22+
html-path: '.' # gh-pages live html
23+
fail-on-broken: 'false'
24+
silent-codes: '403,503'
25+
ai-suggestions: 'true'
26+
create-issue: 'true'
27+

0 commit comments

Comments
 (0)