Skip to content

Commit

Permalink
Update migrate-s3.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Oct 21, 2024
1 parent 8905640 commit 3c092dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/migrate-s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ permissions:
contents: read

jobs:
refresh-s3:
name: Refresh S3
migrate-s3:
name: Migrate S3
runs-on: ubuntu-22.04
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
for prefix in $cleaned_prefixes; do
DIR=$(kubectl exec $SERVICE_POD_NAME -- aws s3api list-objects-v2 --bucket $SRC_BUCKET --prefix "$prefix" --delimiter '/' --query 'CommonPrefixes[*].Prefix' --output text)
if [ -n "$DIR" ]; then
DIR=$(echo $DIR | tr -s '[:space:]' ',')
DIR=$(echo $DIR | tr -s '[:space:]' ',' | sed 's/[,/]*$//')
DIRS="${DIRS}${DIR},"
fi
done
Expand Down

0 comments on commit 3c092dd

Please sign in to comment.