Skip to content

Commit da715b6

Browse files
feat: Algolia auto trigger instead of manual trigger (#357)
* review * Only auto runs on master * master not main * Update .github/workflows/docs-scrapper.yml Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> --------- Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk>
1 parent 715dcd2 commit da715b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/docs-scrapper.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ name: DocSearch Scrap
33
on:
44
# Allow to run manually
55
workflow_dispatch:
6+
# Trigger on successful deployment status
7+
deployment_status:
68

79
jobs:
810
update-docsearch:
911
name: Update DocSearch
1012
runs-on: ubuntu-latest
13+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && github.ref == 'refs/heads/master')
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v3

0 commit comments

Comments
 (0)