File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ jobs:
5353
5454 - name : Delete Old Index
5555 run : |
56- echo "from algoliasearch.search_client import SearchClient" > deleteIndex.py
57- echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> deleteIndex.py
58- echo "index = client.init_index(\"hardwario\")" >> deleteIndex.py
59- echo "index.clear_objects()" >> deleteIndex.py
60- echo "print(\"Deleted records.\")" >> deleteIndex.py
56+ echo "from algoliasearch.search_client import SearchClient" > tmp/ deleteIndex.py
57+ echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> tmp/ deleteIndex.py
58+ echo "index = client.init_index(\"hardwario\")" >> tmp/ deleteIndex.py
59+ echo "index.clear_objects()" >> tmp/ deleteIndex.py
60+ echo "print(\"Deleted records.\")" >> tmp/ deleteIndex.py
6161
62- pipenv run python deleteIndex.py
62+ pipenv run python tmp/ deleteIndex.py
6363
6464 - name : Build The Index
6565 run : |
You can’t perform that action at this time.
0 commit comments