From cad399c802c6770026afeab0753e5c98a3cd9516 Mon Sep 17 00:00:00 2001 From: NY64 Date: Sat, 6 Jan 2024 04:05:55 +0900 Subject: [PATCH] Delete .github/indexNow.sh --- .github/indexNow.sh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/indexNow.sh diff --git a/.github/indexNow.sh b/.github/indexNow.sh deleted file mode 100644 index e005c72..0000000 --- a/.github/indexNow.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -commit_message=$(git log -1 --pretty=format:"%s") - -# 커밋 메시지가 'new post: '로 시작할 때만 -if [[ $commit_message == "new post: "* ]]; then - title=${commit_message#"new post: "} # 'new post: ' 부분을 제거하여 제목만 추출 - - curl -X POST -H "Content-Type: application/json" \ - -d '{ - "url": "https://blog.ny64.kr/posts/'"$title"'", - "type": "URL_UPDATED" - }' \ - "https://indexing.googleapis.com/v3/urlNotifications:publish?key=YOUR_API_KEY" -fi