Search scraping #3391
Workflow file for this run
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: Search scraping | |
concurrency: search_scraping | |
on: deployment_status | |
jobs: | |
scrape-site-for-search: | |
name: 'Scrape Site for Search' | |
if: github.event.deployment_status.state == 'success' && github.event.deployment.environment == 'production' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Run docs-scraper | |
env: | |
HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }} | |
API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} | |
CONFIG_FILE_PATH: ${{ github.workspace }}/.github/workflows/docs-scraper.config.json | |
run: | | |
docker run -t --rm \ | |
-e MEILISEARCH_HOST_URL=$HOST_URL \ | |
-e MEILISEARCH_API_KEY=$API_KEY \ | |
-v $CONFIG_FILE_PATH:/docs-scraper/config.json \ | |
getmeili/docs-scraper:v0.12.12 pipenv run ./docs_scraper config.json |