Skip to content

Commit b12eeb1

Browse files
committed
test
1 parent 6e565d1 commit b12eeb1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

actions/preview/action.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ inputs:
1111
default: true
1212
required: false
1313

14-
15-
1614
runs:
1715
using: "composite"
1816
steps:
@@ -37,13 +35,13 @@ runs:
3735
echo "IS_CLEANUP: ${{ steps.type.outputs.IS_CLEANUP }}"
3836
3937
- name: Cleanup
40-
if: ${{ steps.type.outputs.IS_CLEANUP }}
38+
if: steps.type.outputs.IS_CLEANUP
4139
shell: bash
4240
run: |
4341
aws s3 rm "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --recursive
4442
4543
- name: Delete GitHub environment
46-
if: ${{ steps.type.outputs.IS_CLEANUP }}
44+
if: steps.type.outputs.IS_CLEANUP
4745
uses: actions/github-script@v7
4846
with:
4947
script: |
@@ -69,7 +67,7 @@ runs:
6967
}
7068
7169
- name: Create Deployment
72-
if: ${{ steps.type.outputs.IS_DEPLOYMENT }}
70+
if: steps.type.outputs.IS_DEPLOYMENT
7371
uses: actions/github-script@v7
7472
id: deployment
7573
with:
@@ -111,7 +109,7 @@ runs:
111109
return deployment.data.id
112110
113111
- name: Generate Path Prefix
114-
if: ${{ steps.type.outputs.IS_DEPLOYMENT }}
112+
if: steps.type.outputs.IS_DEPLOYMENT
115113
id: path-prefix
116114
shell: bash
117115
run: |
@@ -122,23 +120,23 @@ runs:
122120
fi
123121
124122
- name: Build public documentation
125-
if: ${{ steps.type.outputs.IS_DEPLOYMENT }}
123+
if: steps.type.outputs.IS_DEPLOYMENT
126124
uses: elastic/docs-builder@main
127125
continue-on-error: ${{ inputs.strict != 'true' }} # Will be removed after the migration phase
128126
with:
129127
prefix: ${{ steps.path-prefix.outputs.result }}
130128
strict: ${{ inputs.strict }}
131129

132130
- name: Upload artifact
133-
if: ${{ steps.type.outputs.IS_DEPLOYMENT }}
131+
if: steps.type.outputs.IS_DEPLOYMENT
134132
shell: bash
135133
run: |
136134
aws s3 sync .artifacts/docs/html s3://elastic-docs-v3-website-preview${{steps.path-prefix.outputs.result}} --delete --quiet
137135
aws cloudfront create-invalidation --distribution-id EKT7LT5PM8RKS --paths "${{steps.path-prefix.outputs.result}}/*"
138136
139137
- name: Update deployment status
140138
uses: actions/github-script@v7
141-
if: always() && ${{ steps.type.outputs.IS_DEPLOYMENT }}
139+
if: always() && steps.type.outputs.IS_DEPLOYMENT
142140
with:
143141
script: |
144142
await github.rest.repos.createDeploymentStatus({

0 commit comments

Comments
 (0)