bojieyang/IndexNow Action

Automatically submit URLs through the IndexNow protocol.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 26, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: bojieyang/indexnow-action@38ddfbd93579a8a44c0dee662121bf9d51098f71 # v3.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
sitemap-locationThe location of the sitemap(e.g., https://example.com/sitemap.xml).yes
sinceURLs with `lastmod` fields in sitemap files within the last {since} {since-unit} will be submitted. The default value is 1. no1
since-unitThe unit of since. Available units are 'minute', 'hour', 'day', 'week', 'month' and 'year'. The default value is 'day'. noday
endpointThe endpoint of a special search engine. Available units are api.indexnow.org, www.bing.com, search.seznam.cz and yandex.com. The default value is www.bing.com. For more details, see: https://www.indexnow.org/faq nowww.bing.com
keyIndexNow key that you get from search engines. NOTICE: DO NOT stored as plaintext in the workflow file. Use GitHub Secrets instead. More about GitHub Secrets, see 'https://docs.github.com/en/actions/security-guides/encrypted-secrets'. yes
key-locationLocation of the IndexNow key file that you customed. If not set, it will assume that there is a file named '{your-indexnow-key}.txt' in the root directory of the website. NOTICE: DO NOT stored as plaintext in the workflow file. Use GitHub Secrets instead. More about GitHub Secrets, see 'https://docs.github.com/en/actions/security-guides/encrypted-secrets'. no""
limitThe upper limit for submitting URLs.no100
timeoutSet the fetch timeout in milliseconds. The default value is 10000.no10000
failure-strategyDefine the strategy when submit failed. Available strategy are ignore and error. For 'ignore', will outputting an notice only. For 'error', outputting an error message also sets the status of action to fail. The Default value is ignore. noignore
lastmod-requiredIf set to false, url entry without a `lastmod` tag in sitemap may be submitted, as long as the other conditions are met. If set to true, url entry without a `lastmod` tag in sitemap will be excluded. This is the default behavior and can not be configured before. However, there are some scenarios where the sitemap does not have a `lastmod` tag and it is difficult to set this tag, but they still want these URLs to be submitted. This option is added to be compatible with this scenario. since version 2.1. notrue

no outputs