Skip to content

Merge pull request #69 from eepson123tw/feature/upgrage-dependencies #61

Merge pull request #69 from eepson123tw/feature/upgrage-dependencies

Merge pull request #69 from eepson123tw/feature/upgrage-dependencies #61

Workflow file for this run

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