DocSearch Scraper #1339
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |