diff --git a/.github/workflows/restore-docs.yaml b/.github/workflows/restore-docs.yaml index 5dfd601..dd0942d 100644 --- a/.github/workflows/restore-docs.yaml +++ b/.github/workflows/restore-docs.yaml @@ -49,10 +49,9 @@ jobs: SERVICE_POD_DEPLOYMENT=$(kubectl get deployment -l app=service-pod -o jsonpath="{.items[0].metadata.name}") SERVICE_POD_NAME=$(kubectl get pod -l app=$SERVICE_POD_DEPLOYMENT -o jsonpath="{.items[0].metadata.name}") - S3_BUCKET_NAME=$(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d) - # Exec into the service pod and execute the script kubectl exec $SERVICE_POD_NAME -- /bin/sh -c ' + S3_BUCKET_NAME=$(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d) # check if object is present or not object_versions=$(aws s3api list-object-versions --bucket "$S3_BUCKET_NAME" --prefix "${S3_OBJECT_KEY}") if [[ -z "$object_versions" ]]; then