Skip to content

Merge pull request #26 from netwrix/feature/search #1

Merge pull request #26 from netwrix/feature/search

Merge pull request #26 from netwrix/feature/search #1

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

View workflow run for this annotation

GitHub Actions / Reindex Algolia

Invalid workflow file

The workflow is not valid. .github/workflows/reindex-algolia.yml (Line: 23, Col: 9): Unexpected end of expression: '||'. Located at position 136 within expression: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(fromJson('["main", "master"]'), github.ref_name)) ||
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/'