Update Prisma schema path in overview document (#7395) #154
This file contains hidden or 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 Recrawl | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| algolia_crawl: | |
| name: Algolia Recrawl | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Check for content changes | |
| id: check | |
| run: | | |
| echo "Comparing HEAD~1 to HEAD for content changes..." | |
| CHANGED=$(git diff --name-only HEAD~1 HEAD | grep -E '^content/' || true) | |
| if [[ -n "$CHANGED" ]]; then | |
| echo "Content has changed:" | |
| echo "$CHANGED" | |
| echo "content_changed=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "No relevant content changes detected." | |
| echo "content_changed=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Algolia crawler creation and crawl | |
| if: steps.check.outputs.content_changed == 'true' | |
| uses: algolia/algoliasearch-crawler-github-actions@v1 | |
| with: | |
| crawler-name: "prisma-65fc344804ffaa00363a15a1" | |
| crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} | |
| crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} | |
| algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} | |
| algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} | |
| site-url: "https://www.prisma.io/docs" |