File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ jobs:
130130 strict : ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }}
131131
132132 - uses : elastic/docs-builder/.github/actions/aws-auth@main
133- if : steps.deployment.outputs.result
133+ if : ${{ !cancelled() && steps.deployment.outputs.result }}
134134
135135 - name : Upload to S3
136136 id : s3-upload
137- if : steps.deployment.outputs.result
137+ if : ${{ !cancelled() && steps.deployment.outputs.result }}
138138 run : |
139139 aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete
140140 aws cloudfront create-invalidation \
@@ -156,7 +156,7 @@ jobs:
156156 owner: context.repo.owner,
157157 repo: context.repo.repo,
158158 deployment_id: ${{ steps.deployment.outputs.result }},
159- state: "${{ job.status == 'success' && 'success' || 'failure' }}",
159+ state: "${{ steps.s3-upload.outcome == 'success' && 'success' || 'failure' }}",
160160 environment_url: `https://docs-v3-preview.elastic.dev${process.env.PATH_PREFIX}`,
161161 log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
162162 })
You can’t perform that action at this time.
0 commit comments