Skip to content

Commit a33d1b9

Browse files
committed
ci: Added required inputs
1 parent f43bd59 commit a33d1b9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/indexnow.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ name: 'IndexNow'
22
on:
33
page_build:
44
workflow_dispatch:
5+
inputs:
6+
since-unit:
7+
type: choice
8+
description: 'The unit of time to report updates since'
9+
required: true
10+
default: week
11+
options:
12+
- minute
13+
- hour
14+
- day
15+
- week
16+
- month
17+
- year
518

619
jobs:
720
check-and-submit:
@@ -15,5 +28,5 @@ jobs:
1528
sitemap-location: 'https://daily-devops.net/sitemap.xml'
1629
key: ${{ secrets.INDEXNOW_KEY }}
1730
key-location: 'https://daily-devops.net/indexnow.txt'
18-
since-unit: 'week'
31+
since-unit: ${{ inputs.since-unit || 'week' }}
1932
failure-strategy: 'error'

0 commit comments

Comments
 (0)