File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Weekly archive.org snapshot
2+ on :
3+ schedule :
4+ - cron : ' 0 2 * * 1' # Every Monday 02:00 UTC = 10:00 Asia/Shanghai
5+ workflow_dispatch :
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ snapshot :
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 15
14+ steps :
15+ - name : Submit URLs to Wayback Machine
16+ run : |
17+ URLS=(
18+ "https://llmapi.pro"
19+ "https://llmapi.pro/blog/claude-code-from-china-setup-guide"
20+ "https://llmapi.pro/blog/fix-claude-code-429-rate-limit-exceeded"
21+ "https://llmapi.pro/blog/claude-code-tool-use-complete-guide"
22+ "https://llmapi.pro/blog/claude-code-budget-guide-solo-developers"
23+ "https://github.com/llmapi-pro"
24+ "https://github.com/llmapi-pro/journal"
25+ "https://github.com/llmapi-pro/awesome-claude-code-china"
26+ "https://github.com/llmapi-pro/claude-code-setup"
27+ "https://github.com/llmapi-pro/claude-md-templates"
28+ "https://github.com/llmapi-pro/claude-next"
29+ "https://llmapi-pro.github.io/journal/"
30+ )
31+ for url in "${URLS[@]}"; do
32+ echo "::group::Snapshot $url"
33+ curl -sS -A "Mozilla/5.0 (compatible; llmapi-archive/1.0)" \
34+ -o /dev/null \
35+ -w " HTTP %{http_code}\n" \
36+ --max-time 90 \
37+ "https://web.archive.org/save/$url" || echo " failed (continuing)"
38+ echo "::endgroup::"
39+ sleep 6
40+ done
41+ echo "Done. Wayback Machine indexes async — fresh snapshots typically appear within minutes."
You can’t perform that action at this time.
0 commit comments