diff --git a/.github/workflows/algolia.yml b/.github/workflows/algolia.yml index ea28330..5f52628 100644 --- a/.github/workflows/algolia.yml +++ b/.github/workflows/algolia.yml @@ -1,13 +1,12 @@ name: Algolia # Reindex site search on Algolia on: - workflow_dispatch: - push: - branches: - - main - + workflow_dispatch: + deployment_status: + jobs: reindex: + if: github.event.deployment_status.environment == 'production' && github.event.deployment_status.state == 'success' runs-on: ubuntu-latest steps: - name: Reindex Algolia