Skip to content

Commit e745c15

Browse files
Create indexnow.yml
1 parent dab318b commit e745c15

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/indexnow.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: IndexNow Auto Submit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
indexnow:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v3
14+
15+
- name: Submit URLs to IndexNow
16+
run: |
17+
echo "Start submitting to IndexNow..."
18+
19+
URLs=(
20+
"https://gptvpnhelper.com/chatgpt-plus-guide/"
21+
)
22+
23+
KEY="7fcb984b977c41acbe5d4ffe78ed0308"
24+
25+
for URL in "${URLs[@]}"; do
26+
curl -i "https://api.indexnow.org/indexnow?url=$URL&key=$KEY" \
27+
&& echo "Submitted $URL" \
28+
|| echo "Failed to submit $URL"
29+
done

0 commit comments

Comments
 (0)