Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule the Algolia search index build #520

Merged
merged 1 commit into from
Sep 3, 2023
Merged

Conversation

SenseException
Copy link
Member

As mentioned in #417 the first step to a reoccurring search index build can happen in a monthly cronjob.

@@ -49,9 +54,15 @@ jobs:
run: "yarn install"

- name: "Prepare Website files"
if: "inputs.search-index-only == false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputs.search-index-only is guaranteed to be a boolean and therefore does not need to be compared to other booleans, it can be used directly or negated.

Suggested change
if: "inputs.search-index-only == false"
if: "! inputs.search-index-only"

run: "bin/console --env=${{ inputs.environment }} build-all"

- name: "Build search index"
if: "inputs.search-index-only == true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: "inputs.search-index-only == true"
if: "inputs.search-index-only"

- name: "Deploy to ${{ inputs.environment }}"
if: "inputs.search-index-only == false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: "inputs.search-index-only == false"
if: "! inputs.search-index-only"

@SenseException SenseException merged commit 345ea13 into master Sep 3, 2023
8 checks passed
@SenseException SenseException deleted the algolia-workflow branch September 3, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants