Skip to content

Commit

Permalink
Merge branch 'main' into gbouv/feature-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Bouvignies committed Jun 27, 2023
2 parents ef5744d + 88e4329 commit 0fa3e42
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/reindex-website-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,27 @@ jobs:
username: ${{ secrets.ALGOLIA_CRAWLER_USER_ID }}
password: ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}
customHeaders: '{"Content-Type": "application/json"}'
check-index:
runs-on: ubuntu-latest
name: Checks that the latest index is still working
steps:
- uses: fjogeleit/http-request-action@v1
id: search
with:
url: "https://NTSX40VZB8-dsn.algolia.net/1/indexes/kurtosis/query"
method: 'POST'
customHeaders: '{"X-Algolia-API-Key": "4269c726c2fea4e6cddfeb9a21cd3d4e", "X-Algolia-Application-Id": "NTSX40VZB8"}'
data: '{ "params": "query=add_service&hitsPerPage=2&getRankingInfo=1" }'
- name: Show Response
run: |
#!/bin/bash
set -eou pipefail
if (( ${{ fromJson(steps.search.outputs.response).nbHits }} > 100 )); then
echo "Results are greater than 100"
else
echo "Results are not greater than 100"
exit 1
fi
needs: reindex-website-main

17 changes: 0 additions & 17 deletions .github/workflows/reindex-website-release.yml

This file was deleted.

0 comments on commit 0fa3e42

Please sign in to comment.