@@ -133,23 +133,21 @@ 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
137136 continue-on-error : ${{ fromJSON(inputs.continue-on-error != '' && inputs.continue-on-error || 'false') }}
138137 with :
139138 prefix : ${{ env.PATH_PREFIX }}
140139 strict : ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }}
141140
142141 - 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')) }}
144142 uses : elastic/docs-builder/actions/validate-inbound-local@main
145- continue-on-error : true
143+ if : ${{ !cancelled() && (steps.deployment.outputs.result || (steps.check-files.outputs.any_modified == ' true' && github.event_name == 'merge_group')) }}
146144
147145 - uses : elastic/docs-builder/.github/actions/aws-auth@main
148- if : ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && steps. deployment.outputs.result }}
146+ if : ${{ !cancelled() && steps.deployment.outputs.result }}
149147
150148 - name : Upload to S3
151149 id : s3-upload
152- if : ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && steps. deployment.outputs.result }}
150+ if : ${{ !cancelled() && steps.deployment.outputs.result }}
153151 run : |
154152 aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete
155153 aws cloudfront create-invalidation \
@@ -160,10 +158,6 @@ jobs:
160158 if : github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.s3-upload.outcome == 'success'
161159 uses : elastic/docs-builder/actions/update-link-index@main
162160
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-
167161 - name : Update deployment status
168162 uses : actions/github-script@v7
169163 if : always() && steps.deployment.outputs.result
@@ -175,7 +169,7 @@ jobs:
175169 owner: context.repo.owner,
176170 repo: context.repo.repo,
177171 deployment_id: ${{ steps.deployment.outputs.result }},
178- state: "${{ steps.docs-build.outputs.skip == 'true' && 'inactive' || (steps. s3-upload.outcome == 'success' && 'success' || 'failure') }}",
172+ state: "${{ steps.s3-upload.outcome == 'success' && 'success' || 'failure' }}",
179173 environment_url: `https://docs-v3-preview.elastic.dev${process.env.PATH_PREFIX}`,
180174 log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
181175 })
0 commit comments