Use newer checkout action, refactor to use native package manager ins… #27
Workflow file for this run
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 Search | ||
on: | ||
schedule: | ||
- cron: '0 10 * * *' | ||
# TODO: Remove trigger from push event when search index scraper is fixed | ||
push: | ||
branches: | ||
- '7-fix-search' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install jq | ||
+ run: sudo apt-get update && sudo apt-get install -y jq | ||
- name: Run Scraper | ||
run: | | ||
docker run -e "APPLICATION_ID=${{ secrets.ALGOLIA_APP_ID }}" -e "API_KEY=${{ secrets.API_KEY }}" -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper |