Skip to content

IndexNow

IndexNow #30

Workflow file for this run

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:
runs-on: ubuntu-latest
steps:
- id: indexnow
name: Report Updates to IndexNow
uses: bojieyang/indexnow-action@v2
with:
sitemap-location: 'https://daily-devops.net/sitemap.xml'
key: ${{ secrets.INDEXNOW_KEY }}
key-location: 'https://daily-devops.net/indexnow.txt'
since-unit: ${{ inputs.since-unit || 'week' }}
failure-strategy: 'error'