-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
.github/workflows/deployment.yml
Outdated
@@ -49,9 +54,15 @@ jobs: | |||
run: "yarn install" | |||
|
|||
- name: "Prepare Website files" | |||
if: "inputs.search-index-only == false" |
There was a problem hiding this comment.
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.
if: "inputs.search-index-only == false" | |
if: "! inputs.search-index-only" |
.github/workflows/deployment.yml
Outdated
run: "bin/console --env=${{ inputs.environment }} build-all" | ||
|
||
- name: "Build search index" | ||
if: "inputs.search-index-only == true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if: "inputs.search-index-only == true" | |
if: "inputs.search-index-only" |
.github/workflows/deployment.yml
Outdated
- name: "Deploy to ${{ inputs.environment }}" | ||
if: "inputs.search-index-only == false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if: "inputs.search-index-only == false" | |
if: "! inputs.search-index-only" |
c187550
to
6f4694d
Compare
As mentioned in #417 the first step to a reoccurring search index build can happen in a monthly cronjob.