Skip to content

Commit 2df6e8c

Browse files
committed
Move delete script to tmp folder
1 parent 2e68ca3 commit 2df6e8c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)