File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,22 +29,26 @@ branding:
2929runs :
3030 using : " composite"
3131 steps :
32-
33- - uses : actions/checkout@v4
32+
33+ - name : Checks out the action repository
34+ uses : actions/checkout@v4
35+ with :
36+ clean : false
37+ path : sqlitecloud-docsearch
3438
3539 - name : Builds the docBuilder
36- run : make main
40+ run : make sqlitecloud-docsearch/ main
3741 shell : bash
3842
3943 - name : Runs the docBuilder
40- run : ./main ${{ inputs.path }} search.sql ${{ inputs.remove-astro-headers }} ${{ inputs.remove-titles }}
44+ run : ./sqlitecloud-docsearch/ main ${{ inputs.path }} search.sql ${{ inputs.remove-astro-headers }} ${{ inputs.remove-titles }}
4145 shell : bash
4246
4347 - name : Executes the SQL query
4448 run : |
4549 if [[ "${{ inputs.project-string }}" =~ ^sqlitecloud:// ]]; then
4650 [[ "${{ inputs.database }}" ]] || { echo "database input is empty" ; exit 1; }
47- SQL=$(echo -e $(cat search.sql))
51+ SQL=$(echo -e $(cat sqlitecloud-docsearch/ search.sql))
4852 BODY="{ \"sql\": \"${SQL}\", \"database\": \"${{ inputs.database }}\"}"
4953 URL="https:"$(echo ${{ inputs.project-string }} | awk -F ':' '{print $2}')":8090/v2/weblite/sql"
5054 echo $(curl $URL -H 'Content-Type: application/json' -H 'Authorization: Bearer ${{ inputs.project-string }}' -H 'accept: application/json' -d "$BODY")
You can’t perform that action at this time.
0 commit comments