File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
.github/actions/check-links Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 18
18
"https://www.pinecone.io" ,
19
19
"https://app.pinecone.io" ,
20
20
]
21
+
22
+ ignore_links = [
23
+ 'platform.openai.com' , # cloudflare blocks requests sometimes
24
+ 'colab.research.google.com' , # cloudflare blocks requests sometimes
25
+ 'quora.com' , # cloudflare blocks requests sometimes
26
+ 'nbviewer.org' # nbviewer has a pretty strict rate limit, so we don't want to waste requests
27
+ 'app.pinecone.io' , # we don't need to spam our own homepage
28
+ ]
29
+
21
30
known_good_links = set (known_good )
22
31
for link in known_good :
23
32
known_good_links .add (f"{ link } /" )
46
55
if links :
47
56
print (f"\n File: { filename } " )
48
57
for link in sorted (links ):
58
+ if any (ignore_link in link for ignore_link in ignore_links ):
59
+ print (f" ⏭️ { link } " )
60
+ continue
49
61
if link in known_good_links :
50
62
good_links .add (link )
51
63
print (f" ✅ { link } " )
You can’t perform that action at this time.
0 commit comments