Skip to content

Commit 555861e

Browse files
committed
fix
1 parent 5906348 commit 555861e

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

actions/preview/action.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,14 @@ runs:
2828
- name: Authenticate
2929
uses: elastic/docs-builder/.github/actions/aws-auth@main
3030

31-
- name: Debug
32-
shell: bash
33-
run: |
34-
echo "IS_DEPLOYMENT: ${{ steps.type.outputs.IS_DEPLOYMENT }}"
35-
echo "IS_CLEANUP: ${{ steps.type.outputs.IS_CLEANUP }}"
36-
3731
- name: Cleanup
38-
if: steps.type.outputs.IS_CLEANUP
32+
if: steps.type.outputs.IS_CLEANUP == 'true'
3933
shell: bash
4034
run: |
4135
aws s3 rm "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --recursive
4236
4337
- name: Delete GitHub environment
44-
if: steps.type.outputs.IS_CLEANUP
38+
if: steps.type.outputs.IS_CLEANUP == 'true'
4539
uses: actions/github-script@v7
4640
with:
4741
script: |
@@ -67,7 +61,7 @@ runs:
6761
}
6862
6963
- name: Create Deployment
70-
if: steps.type.outputs.IS_DEPLOYMENT
64+
if: steps.type.outputs.IS_DEPLOYMENT == 'true'
7165
uses: actions/github-script@v7
7266
id: deployment
7367
with:
@@ -109,7 +103,7 @@ runs:
109103
return deployment.data.id
110104
111105
- name: Generate Path Prefix
112-
if: steps.type.outputs.IS_DEPLOYMENT
106+
if: steps.type.outputs.IS_DEPLOYMENT == 'true'
113107
id: path-prefix
114108
shell: bash
115109
run: |
@@ -120,23 +114,23 @@ runs:
120114
fi
121115
122116
- name: Build public documentation
123-
if: steps.type.outputs.IS_DEPLOYMENT
117+
if: steps.type.outputs.IS_DEPLOYMENT == 'true'
124118
uses: elastic/docs-builder@main
125119
continue-on-error: ${{ inputs.strict != 'true' }} # Will be removed after the migration phase
126120
with:
127121
prefix: ${{ steps.path-prefix.outputs.result }}
128122
strict: ${{ inputs.strict }}
129123

130124
- name: Upload artifact
131-
if: steps.type.outputs.IS_DEPLOYMENT
125+
if: steps.type.outputs.IS_DEPLOYMENT == 'true'
132126
shell: bash
133127
run: |
134128
aws s3 sync .artifacts/docs/html s3://elastic-docs-v3-website-preview${{steps.path-prefix.outputs.result}} --delete --quiet
135129
aws cloudfront create-invalidation --distribution-id EKT7LT5PM8RKS --paths "${{steps.path-prefix.outputs.result}}/*"
136130
137131
- name: Update deployment status
138132
uses: actions/github-script@v7
139-
if: always() && steps.type.outputs.IS_DEPLOYMENT
133+
if: always() && steps.type.outputs.IS_DEPLOYMENT == 'true'
140134
with:
141135
script: |
142136
await github.rest.repos.createDeploymentStatus({

0 commit comments

Comments
 (0)