Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Algolia Index

Algolia Index #37

Workflow file for this run

name: Algolia Index
on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight (UTC time)
workflow_dispatch:
jobs:
cron_job:
runs-on: ubuntu-latest
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create .env file
run: |
echo "APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }}" >> .env
echo "API_KEY=${{ secrets.ALGOLIA_API_KEY }}" >> .env
- name: Run cron job
run: docker run --env-file=.env -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper