Skip to content

Commit

Permalink
ci: Added required inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Dec 31, 2024
1 parent f43bd59 commit a33d1b9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/indexnow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ name: 'IndexNow'
on:
page_build:
workflow_dispatch:
inputs:
since-unit:
type: choice
description: 'The unit of time to report updates since'
required: true
default: week
options:
- minute
- hour
- day
- week
- month
- year

jobs:
check-and-submit:
Expand All @@ -15,5 +28,5 @@ jobs:
sitemap-location: 'https://daily-devops.net/sitemap.xml'
key: ${{ secrets.INDEXNOW_KEY }}
key-location: 'https://daily-devops.net/indexnow.txt'
since-unit: 'week'
since-unit: ${{ inputs.since-unit || 'week' }}
failure-strategy: 'error'

0 comments on commit a33d1b9

Please sign in to comment.