Skip to content

Commit

Permalink
Fix: algolia-updater in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmykreee committed Dec 18, 2024
1 parent f57d37a commit 6ea9be4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ jobs:
directory: public
branch: main

- uses: algolia/setup-algolia-cli@master
- name: Upload Algolia Index
uses: wangchucheng/algolia-uploader@master
with:
app_id: ${{ secrets.ALGOLIA_APP_ID }}
admin_key: ${{ secrets.ALGOLIA_ADMIN_KEY }}
index_name: ${{ secrets.ALGOLIA_INDEX_NAME }}
index_file_path: public/index.json
run: algolia indices clear ${{ secrets.ALGOLIA_INDEX_NAME }} && algolia indices batch ${{ secrets.ALGOLIA_INDEX_NAME }} public/index.json
env:
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
2 changes: 1 addition & 1 deletion static/js/init-cookieconsent.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CookieConsent.run({
},

onFirstConsent: ({ cookie }) => {
cookie.categories.includes("analytics")? window.clarity("consent") : window.clarity("not")
cookie.categories.includes("analytics")? window.clarity("consent") : window.clarity("not", false)
},

onChange: ({ cookie, changedCategories, changedServices }) => {
Expand Down

0 comments on commit 6ea9be4

Please sign in to comment.