Merge pull request #69 from eepson123tw/feature/upgrage-dependencies #61
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: algolia | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
jobs: | |
algolia: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Get the content of algolia.json as config | |
id: aligolia_config | |
run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT | |
- name: Run DocSearch Scraper | |
env: | |
APPLICATION_ID: ${{ secrets.APPLICATION_ID }} | |
API_KEY: ${{ secrets.API_KEY }} | |
run: | | |
docker run \ | |
-e APPLICATION_ID -e API_KEY \ | |
-e CONFIG="$(cat crawlerConfig.json)" \ | |
algolia/docsearch-scraper |