-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
45 lines (42 loc) · 1.16 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
name: 'Algolia Crawler Automatic Crawl'
description: 'Automatically trigger a crawl and push to Algolia, when deploying a website using the Algolia Crawler.'
branding:
icon: "upload-cloud"
color: "blue"
inputs:
# CREDENTIALS
crawler-user-id:
description: 'Crawler user ID'
required: true
crawler-api-key:
description: 'Crawler API key'
required: true
crawler-api-base-url:
description: 'Crawler API URL'
required: false
default: 'https://crawler.algolia.com/api/1'
github-token:
description: 'Github token'
required: true
default: ${{ github.token }}
# CRAWLER CONFIGURATION
crawler-name:
description: 'Name of the crawler'
required: true
default: '[Github] ${{ github.repository }} ${{ github.ref }}'
algolia-app-id:
description: 'Algolia Application ID'
required: true
algolia-api-key:
description: 'Algolia API key'
required: true
site-url:
description: 'url of the site to crawl'
required: true
override-config:
description: 'Override config in case the crawler is already existing'
required: false
default: false
runs:
using: 'node16'
main: 'build/index.js'