Skip to content

Commit

Permalink
Merge pull request #461 from stanley-skyline/other/2024-09-13_AutoRei…
Browse files Browse the repository at this point in the history
…ndexSearch

Automatically re-index azure search (docs-connectors)
  • Loading branch information
MariekeGO authored Sep 13, 2024
2 parents 5da25d2 + dd8fa55 commit b9e73c4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,21 @@ jobs:
connection_string: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }}
# Sync: true keeps the source and destination in sync,
# otherwise changed files and new would be pushed, but deleted wouldn't be removed.
sync: 'true'
sync: 'true'

reindex_azure_search:
runs-on: ubuntu-latest
needs: deploy_job_Storage_Account
name: Re-index azure search
steps:
- name: Azure Cognitive Search Reindex
# You may pin to the exact commit or the version.
# uses: andrewconnell/azure-search-index@ac64a40924771a415e01d52db4c1d557ecd3a99f
uses: andrewconnell/azure-search-index@2.0.3
with:
# Name of the Azure Cognitive Search resource.
azure-search-instance: docs-srch
# Search indexer to reindex
azure-search-indexer: azureblob-indexer-docs-connectors
# Admin key used to connect to Azure Cognitive Search instance
azure-search-admin-key: ${{ secrets.AZURE_SEARCH_KEY }}

0 comments on commit b9e73c4

Please sign in to comment.