Skip to content

Instantly share code, notes, and snippets.

@yuito-it
Created August 9, 2023 23:19
Show Gist options
  • Select an option

  • Save yuito-it/fa3777cb5b76833ee432eef666d9e199 to your computer and use it in GitHub Desktop.

Select an option

Save yuito-it/fa3777cb5b76833ee432eef666d9e199 to your computer and use it in GitHub Desktop.
sitemap.xmlを自動送信させる。
name: update-sitemap
on:
schedule:
- cron: '0 15 * * *'
jobs:
update-sitemap:
runs-on: ubuntu-latest
steps:
- name: Ping to Google
run: |
curl -X GET "http://www.google.com/ping?sitemap=https://yuito-it.github.io/blog/sitemap.xml"
curl -X GET "http://www.google.com/ping?sitemap=https://yuito-it.github.io/blog/rss/feed.xml"
curl -X GET "http://www.google.com/ping?sitemap=https://yuito-it.github.io/blog/rss/atom.xml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment