Skip to content

Commit

Permalink
Update docsearch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qmcloud authored Apr 3, 2024
1 parent eb4056d commit de6dc38
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/docsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,4 @@

name: docsearch

on:
schedule:
# 约每天早上8点触发(UTC时间0点)
- cron: '0 0 * * *'

jobs:
algolia:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get the content of docsearch.json as config
id: algolia_config
run: echo "::set-output name=config::$(cat docsearch.json | jq -r tostring)"

- name: Run algolia/docsearch-scraper image
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
CONFIG: ${{ steps.algolia_config.outputs.config }}
run: |
docker run \
--env APPLICATION_ID=${ALGOLIA_APP_ID} \
--env API_KEY=${ALGOLIA_API_KEY} \
--env "CONFIG=${CONFIG}" \
algolia/docsearch-scraper

0 comments on commit de6dc38

Please sign in to comment.