Skip to content

Commit ab1cf89

Browse files
authored
Merge pull request #2977 from surishubham/testmuCom
Update Typesense collection setup and change index name to 'lambdatest'
2 parents 68f32df + 03a3bfa commit ab1cf89

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/typesense-crawler-prod.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,22 @@ jobs:
1515
- name: Checkout Repository
1616
uses: actions/checkout@v3 # You MUST checkout your repository first!
1717

18+
- name: Ensure Typesense collection exists
19+
run: |
20+
curl -s -o /dev/null -w "%{http_code}" \
21+
--request POST \
22+
--url "https://${{ secrets.TYPESENSE_HOST }}/collections" \
23+
--header "X-TYPESENSE-API-KEY: ${{ secrets.TYPESENSE_API_KEY }}" \
24+
--header "Content-Type: application/json" \
25+
--data '{"name":"lambdatest","fields":[{"name":".*","type":"auto"}]}' || true
26+
1827
- name: Run DocSearch Scraper
19-
# env:
20-
# API_KEY: ${{ secrets.TYPESENSE_API_KEY }}
21-
# HOST: ${{ secrets.TYPESENSE_HOST }}
2228
uses: celsiusnarhwal/typesense-scraper@v2
2329
with:
24-
# The secret containing your Typesense API key. Required.
2530
api-key: ${{ secrets.TYPESENSE_API_KEY }}
26-
27-
# The hostname or IP address of your Typesense server. Required.
2831
host: ${{ secrets.TYPESENSE_HOST }}
29-
30-
# The port on which your Typesense server is listening. Optional. Default: 8108.
3132
port: 443
32-
33-
# The protocol to use when connecting to your Typesense server. Optional. Default: http.
3433
protocol: https
35-
36-
# The path to your DocSearch config file. Optional. Default: docsearch.config.json.
3734
config: config.json
3835

3936
# run: |

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"index_name": "testmuai",
2+
"index_name": "lambdatest",
33
"start_urls": [
44
"https://www.testmuai.com/support/"
55
],

0 commit comments

Comments
 (0)