Skip to content

Commit afd7d6f

Browse files
committed
update weblite sql endpoint port; fix #5
1 parent 980336a commit afd7d6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
project-string: ${{ secrets.PROJECT_STRING }}
1818
base-url: https://your-website.com/docs/
19-
database: documentation.sqlite
19+
database: docsearch-action-test.sqlite
2020
use-front-matter: true
2121
strip-md-titles: true
2222
strip-jsx: true

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ runs:
7474
echo "{ \"sql\": \"" > up.json
7575
cat search.sql >> up.json
7676
echo "\", \"database\": \"${{ inputs.database }}\"}" >> up.json
77-
URL="https:"$(echo ${{ inputs.project-string }} | awk -F ':' '{print $2}')":8090/v2/weblite/sql"
77+
URL="https:"$(echo ${{ inputs.project-string }} | awk -F ':' '{print $2}')":443/v2/weblite/sql"
7878
RES=$(curl --compressed $URL -H 'Content-Type: application/json' -H 'Authorization: Bearer ${{ inputs.project-string }}' -H 'accept: application/json' -d @up.json)
7979
echo $RES
8080
if [[ "$RES" =~ error ]]; then

0 commit comments

Comments
 (0)