Skip to content

DocSearch Scraper #1354

DocSearch Scraper

DocSearch Scraper #1354

Workflow file for this run

name: DocSearch Scraper
on:
schedule:
- cron: '53 1 * * *'
jobs:
scrape:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Get DocSearch configuration
id: docsearch-config
run: echo "::set-output name=json::$(cat docsearch.json | jq -r tostring)"
- name: Pull DocSearch Scraper
run: docker pull algolia/docsearch-scraper:latest
- name: Run DocSearch Scraper
run: docker run -e TZ -e API_KEY -e APPLICATION_ID -e CONFIG algolia/docsearch-scraper:latest
env:
TZ: UTC
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
CONFIG: ${{ steps.docsearch-config.outputs.json }}