Skip to content

Commit b660f71

Browse files
committed
fix path issue
1 parent ab02265 commit b660f71

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

action.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,26 @@ branding:
2929
runs:
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")

0 commit comments

Comments
 (0)