Merge pull request #26 from netwrix/feature/search #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Reindex Algolia | ||
| on: | ||
| # Manual trigger with inputs | ||
| workflow_dispatch: | ||
| # Automatic triggers | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'docs/**' | ||
| - 'src/**' | ||
| - 'static/**' | ||
| - 'docusaurus.config.js' | ||
| - 'sidebars/**' | ||
| - 'package.json' | ||
| jobs: | ||
| reindex-algolia: | ||
| name: Reindex Algolia Search | ||
| runs-on: ubuntu-latest | ||
| # Only run if push to main/master or manual trigger or scheduled | ||
| if: | | ||
|
Check failure on line 23 in .github/workflows/reindex-algolia.yml
|
||
| github.event_name == 'workflow_dispatch' || | ||
| (github.event_name == 'push' && contains(fromJson('["main", "master"]'), github.ref_name)) || | ||
| steps: | ||
| - name: Algolia crawler creation and crawl | ||
| uses: algolia/[email protected] | ||
| id: algolia_crawler | ||
| with: # mandatory parameters | ||
| crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} | ||
| crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} | ||
| algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} | ||
| algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} | ||
| site-url: 'https://product-docs-prod.onrender.com/' | ||