We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d51034 commit f5fa750Copy full SHA for f5fa750
.github/workflows/docsearch-scraper.yaml
@@ -0,0 +1,24 @@
1
+name: DocSearch Scraper
2
+
3
+# This workflow periodically updates the search index on Algolia
4
5
+on:
6
+ workflow_dispatch:
7
8
+ schedule:
9
+ # * is a special character in YAML so we have to quote this string
10
+ - cron: '41 7 * * *'
11
12
+jobs:
13
+ scraper:
14
+ runs-on: ubuntu-latest
15
+ container:
16
+ image: algolia/docsearch-scraper:latest
17
+ env:
18
+ APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
19
+ API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
20
+ steps:
21
+ - name: Check out the repo
22
+ uses: actions/checkout@v2
23
+ - name: Run scraper
24
+ run: export CONFIG="$(cat algolia.json)"; (cd /root && pipenv install && pipenv run python -m src.index)
0 commit comments