File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments