Skip to content

Commit 93c6769

Browse files
authored
Also add workflow_dispatch to link index steps (#832)
1 parent f6e24f3 commit 93c6769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ jobs:
173173
--paths "${PATH_PREFIX}" "${PATH_PREFIX}/*"
174174
175175
- name: Update Link Index
176-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.s3-upload.outcome == 'success'
176+
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.s3-upload.outcome == 'success'
177177
uses: elastic/docs-builder/actions/update-link-index@main
178178

179179
- name: Update Reference Index
180-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.s3-upload.outcome == 'success'
180+
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.s3-upload.outcome == 'success'
181181
uses: elastic/docs-builder/actions/update-reference-index@main
182182

183183
- name: Update deployment status

0 commit comments

Comments
 (0)