Skip to content

Commit 232421a

Browse files
authored
Set correct deployment status (#632)
1 parent fb70fdf commit 232421a

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
@@ -175,7 +175,7 @@ jobs:
175175
owner: context.repo.owner,
176176
repo: context.repo.repo,
177177
deployment_id: ${{ steps.deployment.outputs.result }},
178-
state: "${{ steps.s3-upload.outcome == 'success' && 'success' || 'failure' }}",
178+
state: "${{ steps.docs-build.outputs.skip == 'true' && 'inactive' || (steps.s3-upload.outcome == 'success' && 'success' || 'failure') }}",
179179
environment_url: `https://docs-v3-preview.elastic.dev${process.env.PATH_PREFIX}`,
180180
log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
181181
})

0 commit comments

Comments
 (0)