update #74
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Sleep for 10 seconds | |
run: sleep 10s | |
shell: bash | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Run scraper | |
env: | |
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} | |
API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
run: | | |
CONFIG="$(cat docsearch-config.json)" | |
docker run -i --rm \ | |
-e APPLICATION_ID=$APPLICATION_ID \ | |
-e API_KEY=$API_KEY \ | |
-e CONFIG="${CONFIG}" \ | |
algolia/docsearch-scraper |