From d8106ac2f8e3acda6a1677d44ab3611bdaf71b13 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 1 Jun 2024 17:48:54 +0530 Subject: [PATCH] chore: add custom trigger support for Docs indexing action Signed-off-by: Pranav C --- .github/workflows/publish-docs-index-typesense.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-docs-index-typesense.yml b/.github/workflows/publish-docs-index-typesense.yml index 6b4aedf3b8..0a6777a58e 100644 --- a/.github/workflows/publish-docs-index-typesense.yml +++ b/.github/workflows/publish-docs-index-typesense.yml @@ -3,7 +3,9 @@ name: "Publish : Docs search index (Typesense)" on: # Triggered manually workflow_dispatch: - + repository_dispatch: + types: trigger-docs-index + jobs: doc-indexer: runs-on: ubuntu-latest @@ -15,12 +17,12 @@ jobs: uses: celsiusnarhwal/typesense-scraper@v2 with: # The secret containing your Typesense API key. Required. - api-key: ${{ secrets.TYPESENSE_API_KEY }} + api-key: ${{ secrets.TYPESENSE_API_KEY }} # The hostname or IP address of your Typesense server. Required. - host: ${{ secrets.TYPESENSE_HOST }} + host: ${{ secrets.TYPESENSE_HOST }} # The port on which your Typesense server is listening. Optional. Default: 8108. - port: 443 + port: 443 # The protocol to use when connecting to your Typesense server. Optional. Default: http. - protocol: https + protocol: https # The path to your DocSearch config file. Optional. Default: docsearch.config.json. - config: ./packages/noco-docs/typesense-scrape-config.json \ No newline at end of file + config: ./packages/noco-docs/typesense-scrape-config.json