File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1818 - name : Install all dependencies
1919 run : |
2020 python -m pip install --upgrade pipenv
21- python -m pip install --upgrade 'algoliasearch>=4.0,<5.0'
2221
2322 - name : Clone algolia repository
2423 uses : actions/checkout@v2
@@ -51,15 +50,14 @@ jobs:
5150
5251 - name : Delete Old Index
5352 run : |
54- pip list
5553 echo "from algoliasearch.search_client import SearchClient" > deleteIndex.py
5654 echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> deleteIndex.py
5755 echo "index = client.init_index(\"hardwario\")" >> deleteIndex.py
5856 echo "index.clear_objects()" >> deleteIndex.py
5957 echo "print(\"Deleted records.\")" >> deleteIndex.py
6058
61- cat deleteIndex.py
62- python deleteIndex.py
59+ pipenv install algoliasearch
60+ pipenv run python deleteIndex.py
6361
6462 - name : Build The Index
6563 run : |
You can’t perform that action at this time.
0 commit comments