Merge pull request #293 from apecloud/support/add-manage-6k-db-instan… #703
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
algolia: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 |