Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
wangtao0101 committed Nov 29, 2022
1 parent f331052 commit 2b5b227
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/doc.yml → .github/workflows/scraper.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: algolia-scraper
name: sls-algolia-scraper

on:
workflow_run:
workflows: ['sls-doc-release']
workflows: [sls-doc-release]
types:
- completed

Expand All @@ -16,7 +16,7 @@ jobs:
repository: https://github.com/aliyun-sls/sls-docsearch-scraper.git
ref: slsdoc

- name: prepare scrape the site 🧽
- name: prepare scrape the dir 🧽
run: |
touch .env && mkdir ~/dirver
Expand Down Expand Up @@ -45,13 +45,14 @@ jobs:
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --dev
- name: Run scraper
run: |
pipenv run ./docsearch run ./config.json
env:
ALGOLIA_APPLICATION_ID: id
ALGOLIA_WRITE_API_KEY: key
CHROMEDRIVER_PATH: ~/driver/chromedriver_mac64.zip
CHROMEDRIVER_PATH: ~/driver/chromedriver_linux64.zip
API_ENDPOINT: opensearch-cn-hangzhou.aliyuncs.com
API_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
API_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
Expand Down

0 comments on commit 2b5b227

Please sign in to comment.