Skip to content

Commit a976288

Browse files
committed
fix
1 parent ffcda22 commit a976288

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/preview-cleanup.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: ./actions/aws-auth
16-
1716
- name: Delete s3 objects
1817
env:
1918
PR_NUMBER: ${{ github.event.pull_request.number }}
2019
run: |
21-
aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete
20+
aws s3 rm "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --recursive
2221
2322
- name: Delete preview deployments
2423
uses: actions/github-script@v7

actions/aws-auth/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
shell: python
2727
env:
2828
AWS_ACCOUNT_ID: ${{ inputs.aws_account_id }}
29-
ROLE_NAME_PREFIX: ${{ inputs.role_name_prefix }}
29+
ROLE_NAME_PREFIX: ${{ inputs.aws_role_name_prefix }}
3030
run: |
3131
import hashlib
3232
import os

0 commit comments

Comments
 (0)