diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 4c600ab95e..2cadc92a18 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -45,6 +45,11 @@ jobs: name: scrape and push content on Meilisearch instance steps: - uses: actions/checkout@v4 + + - name: Prepare config file + run: | + jq '.custom_settings.embedders.default.apiKey = "${{ secrets.OPENAI_API_KEY }}"' "${{ github.workspace }}/docs-scraper.config.json" > "${{ github.workspace }}/temp-config.json" && mv "${{ github.workspace }}/temp-config.json" "${{ github.workspace }}/docs-scraper.config.json" + - name: Run docs-scraper env: HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }}