Skip to content

Commit 3e06f33

Browse files
committed
Update Workflow
1 parent 898749c commit 3e06f33

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/pages.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
env:
1515
CRAWLER_ID: 7a46f2b7-7169-4936-986d-21391c3134d4
16-
CRAWLER_USER_ID: ${{ secrets.CRAWLER_USER_ID }}
17-
CRAWLER_API_KEY: ${{ secrets.CRAWLER_API_KEY }}
1816

1917
permissions:
2018
contents: read
@@ -90,13 +88,12 @@ jobs:
9088
needs: deploy
9189

9290
steps:
93-
- name: "Algolia Start Crawl"
94-
if: ${{ !cancelled() }}
95-
uses: cssnr/web-request-action@v1
91+
- name: "Algolia Crawler"
92+
uses: cssnr/algolia-crawler-action@v1
9693
with:
97-
url: https://crawler.algolia.com/api/1/crawlers/${{ env.CRAWLER_ID }}/reindex
98-
username: ${{ env.CRAWLER_USER_ID }}
99-
password: ${{ env.CRAWLER_API_KEY }}
94+
crawler_id: ${{ env.CRAWLER_ID }}
95+
crawler_user_id: ${{ secrets.CRAWLER_USER_ID }}
96+
crawler_api_key: ${{ secrets.CRAWLER_API_KEY }}
10097

10198
- name: "Send Post-Deploy Notification"
10299
if: ${{ failure() }}

0 commit comments

Comments
 (0)