@@ -133,21 +133,23 @@ jobs:
133133 - name : Build documentation
134134 if : github.repository != 'elastic/docs-builder' && (steps.deployment.outputs.result || (steps.check-files.outputs.any_modified == 'true' && github.event_name == 'merge_group'))
135135 uses : elastic/docs-builder@main
136+ id : docs-build
136137 continue-on-error : ${{ fromJSON(inputs.continue-on-error != '' && inputs.continue-on-error || 'false') }}
137138 with :
138139 prefix : ${{ env.PATH_PREFIX }}
139140 strict : ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }}
140141
141142 - name : ' Validate Inbound Links'
143+ if : ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && (steps.deployment.outputs.result || (steps.check-files.outputs.any_modified == 'true' && github.event_name == 'merge_group')) }}
142144 uses : elastic/docs-builder/actions/validate-inbound-local@main
143- if : ${{ !cancelled() && (steps.deployment.outputs.result || (steps.check-files.outputs.any_modified == ' true' && github.event_name == 'merge_group')) }}
145+ continue-on-error : true
144146
145147 - uses : elastic/docs-builder/.github/actions/aws-auth@main
146- if : ${{ !cancelled() && steps.deployment.outputs.result }}
148+ if : ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && steps. deployment.outputs.result }}
147149
148150 - name : Upload to S3
149151 id : s3-upload
150- if : ${{ !cancelled() && steps.deployment.outputs.result }}
152+ if : ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && steps. deployment.outputs.result }}
151153 run : |
152154 aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete
153155 aws cloudfront create-invalidation \
@@ -158,6 +160,10 @@ jobs:
158160 if : github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.s3-upload.outcome == 'success'
159161 uses : elastic/docs-builder/actions/update-link-index@main
160162
163+ - name : Update Reference Index
164+ if : github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.s3-upload.outcome == 'success'
165+ uses : elastic/docs-builder/actions/update-reference-index@main
166+
161167 - name : Update deployment status
162168 uses : actions/github-script@v7
163169 if : always() && steps.deployment.outputs.result
@@ -169,7 +175,7 @@ jobs:
169175 owner: context.repo.owner,
170176 repo: context.repo.repo,
171177 deployment_id: ${{ steps.deployment.outputs.result }},
172- state: "${{ steps.s3-upload.outcome == 'success' && 'success' || 'failure' }}",
178+ state: "${{ steps.docs-build.outputs.skip == 'true' && 'inactive' || (steps. s3-upload.outcome == 'success' && 'success' || 'failure') }}",
173179 environment_url: `https://docs-v3-preview.elastic.dev${process.env.PATH_PREFIX}`,
174180 log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
175181 })
0 commit comments