diff --git a/.github/workflows/typesense-scrape.yml b/.github/workflows/typesense-scrape.yml index 466fc5872..ac6ac5558 100644 --- a/.github/workflows/typesense-scrape.yml +++ b/.github/workflows/typesense-scrape.yml @@ -65,7 +65,7 @@ jobs: cat temp_scraper_output.txt # Retrieve the collection name - collection_name=$(grep -o -m 1 'POST /collections/'${{ inputs.version }}'_[0-9]\+' temp_scraper_output.txt) + collection_name=$(sed -n 's/.*POST \/collections\/\(master_[0-9]*\)\/.*/\1/p' temp_scraper_output.txt) # Retrieve documents from typesense server curl -H "X-TYPESENSE-API-KEY: ${{ secrets.TYPESENSE_API_KEY }}" \