chore: use Rails load_defaults
for test runs (#473)
#447
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: crawl | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: ${{ startsWith(github.event.head_commit.message, 'docs') }} | |
name: crawl | |
env: | |
API_KEY: ${{secrets.ALGOLIA_API_KEY}} | |
APPLICATION_ID: GERZE019PN | |
runs-on: ubuntu-latest | |
container: algolia/docsearch-scraper | |
steps: | |
- run: 'sudo apt-get -y libc6=2.28-10+deb10u4 libc-bin=2.28-10+deb10u4' | |
- uses: actions/checkout@v4 | |
- run: 'sudo apt-get install -y jq' | |
- run: 'echo "CONFIG=$(cat docs/.algolia/config.json | jq -r tostring)" >> $GITHUB_ENV' | |
- run: "cd /root && pipenv install" | |
- run: "cd /root && pipenv run python -m src.index" |