Skip to content

Merge pull request #191 from tablelandnetwork/dtb/lit-tutorial #1

Merge pull request #191 from tablelandnetwork/dtb/lit-tutorial

Merge pull request #191 from tablelandnetwork/dtb/lit-tutorial #1

Workflow file for this run

name: Algolia # Reindex site search on Algolia
on:
push:
branches:
- main
jobs:
reindex:
runs-on: ubuntu-latest
steps:
- name: Encode Algolia API credentials
run: echo "ALGOLIA_AUTH=$(echo -n ${{ secrets.CRAWLER_USER_ID }}:${{ secrets.CRAWLER_API_KEY }} | base64)" >> $GITHUB_ENV
- name: Reindex Algolia
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: https://crawler.algolia.com/api/1/crawlers/${{ secrets.CRAWLER_ID }}/reindex
configuration: '{ "method": "POST", "headers": {"Content-Type": "application/json", "Authorization": "Basic ${ALGOLIA_AUTH}" } }'
env:
ALGOLIA_AUTH: ${{ env.ALGOLIA_AUTH }}