Skip to content

Commit

Permalink
push algolia.json only for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Mar 12, 2024
1 parent c161cc8 commit c2cd2f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/algolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ jobs:
run: adjust-algolia-output < ./public/algolia.json | jq > public/algolia_final.json

- name: Install Node.js
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Push to Algolia
if: github.event_name == 'push' && github.ref == 'refs/heads/lukas-docs-search-algolia'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
cd scripts
npm install algoliasearch
Expand Down

0 comments on commit c2cd2f1

Please sign in to comment.