Skip to content

Commit 8080602

Browse files
committed
Fix update-link-index condition
1 parent b64ca26 commit 8080602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/preview-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
--paths "${PATH_PREFIX}" "${PATH_PREFIX}/*"
148148
149149
- name: Update Link Index
150-
if: steps.s3-upload.outcome == 'success'
150+
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.s3-upload.outcome == 'success'
151151
uses: elastic/docs-builder/actions/update-link-index@main
152152

153153
- name: Update deployment status

0 commit comments

Comments
 (0)