-
-
Notifications
You must be signed in to change notification settings - Fork 29
35 lines (34 loc) · 1.18 KB
/
linkcheck.yml
File metadata and controls
35 lines (34 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Link Checker [Anaconda, Linux]
on:
schedule:
# UTC 23:00 is early morning in Australia (9am)
- cron: '0 23 * * 1'
workflow_dispatch:
jobs:
link-checking:
name: QuantEcon AI link checking
runs-on: "ubuntu-latest"
permissions:
issues: write # required for QuantEcon link-checker
steps:
# Download the latest release HTML archive (permanent, not subject to artifact expiry)
- name: Get latest release asset URL
id: release
env:
GH_TOKEN: ${{ github.token }}
run: |
ASSET_URL=$(gh api repos/${{ github.repository }}/releases/latest \
--jq '.assets[] | select(.name | endswith(".tar.gz")) | .browser_download_url')
echo "asset-url=$ASSET_URL" >> $GITHUB_OUTPUT
- name: Download and extract release HTML
run: |
mkdir -p _site
curl -sL "${{ steps.release.outputs.asset-url }}" | tar -xz -C _site
- name: AI-Powered Link Checker
uses: QuantEcon/action-link-checker@main
with:
html-path: '_site'
fail-on-broken: 'false'
silent-codes: '403,503'
ai-suggestions: 'true'
create-issue: 'true'