From 6ea08052feaba76864cf8ca7acf32b3ac1a40830 Mon Sep 17 00:00:00 2001 From: "yongen.loong" Date: Thu, 20 Jun 2024 18:50:34 +0800 Subject: [PATCH] revert: ci --- .github/workflows/typesense.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/typesense.yml b/.github/workflows/typesense.yml index 75029b3..88b951e 100644 --- a/.github/workflows/typesense.yml +++ b/.github/workflows/typesense.yml @@ -9,24 +9,15 @@ jobs: build: name: Update Typesense index runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out the repo uses: actions/checkout@v4 - - name: Run DocSearch Scraper - uses: celsiusnarhwal/typesense-scraper@v2 - with: - # The secret containing your Typesense API key. Required. - api-key: ${{ secrets.TYPESENSE_API_KEY }} - - # The hostname or IP address of your Typesense server. Required. - host: ${{ secrets.TYPESENSE_HOST }} - - # The port on which your Typesense server is listening. Optional. Default: 8108. - port: 443 - - # The protocol to use when connecting to your Typesense server. Optional. Default: http. - protocol: https - - # The path to your DocSearch config file. Optional. Default: docsearch.config.json. - config: config/typesense.json \ No newline at end of file + - run: | + docker run -e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \ + -e TYPESENSE_HOST=${{ secrets.TYPESENSE_HOST }} \ + -e TYPESENSE_PORT=443 \ + -e TYPESENSE_PROTOCOL=https \ + -e "CONFIG=$(cat config/typesense.json | jq -r tostring)" typesense/docsearch-scraper:latest \ No newline at end of file