Skip to content

Commit 369a4dc

Browse files
committed
fix: Update IndexNow workflow to include scheduling and input parameters
1 parent a975aeb commit 369a4dc

File tree

2 files changed

+8
-34
lines changed

2 files changed

+8
-34
lines changed

.github/workflows/indexnow-weekly.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/indexnow.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: 'IndexNow'
22
on:
33
page_build:
4+
schedule:
5+
- cron: '0 3 * * 1' # Runs weekly on Mondays morning at 03:00 UTC
46
workflow_dispatch:
57
inputs:
8+
since:
9+
type: number
10+
description: 'The amount of time to report updates since'
11+
required: false
12+
default: 2
613
since-unit:
714
type: choice
815
description: 'The unit of time to report updates since'
916
required: true
1017
default: week
1118
options:
12-
- minute
13-
- hour
14-
- day
1519
- week
1620
- month
1721
- year
@@ -28,5 +32,6 @@ jobs:
2832
sitemap-location: 'https://daily-devops.net/sitemap.xml'
2933
key: ${{ secrets.INDEXNOW_KEY }}
3034
key-location: 'https://daily-devops.net/indexnow.txt'
35+
since: ${{ inputs.since || 1 }}
3136
since-unit: ${{ inputs.since-unit || 'week' }}
3237
failure-strategy: 'error'

0 commit comments

Comments
 (0)