From 0b090e0b44f1b52c7d7e5682a926dd3710d7934c Mon Sep 17 00:00:00 2001 From: Scott Nath Date: Mon, 29 Apr 2024 10:24:15 -0400 Subject: [PATCH] :rocket: indexnow with cron setup --- .github/workflows/IndexNow.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/IndexNow.yml b/.github/workflows/IndexNow.yml index d7cdf35..9b93ed3 100644 --- a/.github/workflows/IndexNow.yml +++ b/.github/workflows/IndexNow.yml @@ -1,8 +1,12 @@ name: 'IndexNow' + on: - push: - branches: - - main + schedule: + # Scheduled in UTC. + - cron: '0 0,12 * * *' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: check-and-submit: @@ -13,5 +17,5 @@ jobs: with: sitemap-location: 'https://scottnath.com/sitemap.xml' since: 1 - since-unit: year + since-unit: "day" key: ${{ secrets.INDEXNOW_KEY }} \ No newline at end of file