From 1f03dbdf329de2ba96a00c530247444f62d52c6c Mon Sep 17 00:00:00 2001 From: PJ568 Date: Sun, 18 Jun 2023 15:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...reate_sitemap.yml => create&push_sitemap.yml} | 5 ++++- .github/workflows/push_sitemap.yml | 16 ---------------- 2 files changed, 4 insertions(+), 17 deletions(-) rename .github/workflows/{create_sitemap.yml => create&push_sitemap.yml} (87%) delete mode 100644 .github/workflows/push_sitemap.yml diff --git a/.github/workflows/create_sitemap.yml b/.github/workflows/create&push_sitemap.yml similarity index 87% rename from .github/workflows/create_sitemap.yml rename to .github/workflows/create&push_sitemap.yml index b58866ea..c03e3f25 100644 --- a/.github/workflows/create_sitemap.yml +++ b/.github/workflows/create&push_sitemap.yml @@ -33,4 +33,7 @@ jobs: git config --global user.email "LiuTian-PJ568@PJ568.eu.org" git add sitemap.xml git commit -m "add sitemap.xml" - git push \ No newline at end of file + git push + + - name: Ping Google + run: curl https://www.google.com/ping?sitemap=https://Tools.PJ568.eu.org/sitemap.xml \ No newline at end of file diff --git a/.github/workflows/push_sitemap.yml b/.github/workflows/push_sitemap.yml deleted file mode 100644 index 66bebff3..00000000 --- a/.github/workflows/push_sitemap.yml +++ /dev/null @@ -1,16 +0,0 @@ -# workflow to summit Sitemap to google, etc. - -name: Submit Sitemap - -on: - push: - branches: - - main - -jobs: - submit: - runs-on: ubuntu-latest - - steps: - - name: Ping Google - run: curl https://www.google.com/ping?sitemap=https://Tools.PJ568.eu.org/sitemap.xml \ No newline at end of file