forked from bojieyang/indexnow-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
63 lines (63 loc) · 2.38 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'IndexNow Action'
description: 'Automatically submit URLs through the IndexNow protocol.'
author: 'Bojie Yang'
branding:
icon: settings
color: red
inputs:
sitemap-location: # location of the the sitemap
description: 'The location of the sitemap(e.g., https://example.com/sitemap.xml).'
required: true
since:
description: |
URLs with `lastmod` fields in sitemap files within the last {since} {since-unit} will be submitted.
The default value is 1.
required: false
default: '1'
since-unit:
description: |
The unit of since.
Available units are 'minute', 'hour', 'day', 'week', 'month' and 'year'.
The default value is 'day'.
required: false
default: 'day'
endpoint:
description: |
The 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
required: false
default: 'www.bing.com'
key:
description: |
IndexNow 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'.
required: true
key-location:
description: |
Location 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'.
required: false
default: ''
limit:
description: 'The upper limit for submitting URLs.'
required: false
default: '100'
timeout:
description: 'Set the fetch timeout in milliseconds. The default value is 10000.'
required: false
default: '10000'
failure-strategy: #
description: |
Define 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.
required: false
default: 'ignore'
runs:
using: 'node20'
main: 'dist/index.js'