From 4155f66b529db9af954e311d7c8cc7a99471f478 Mon Sep 17 00:00:00 2001 From: Lasse Alm Date: Fri, 18 Oct 2024 21:20:35 +0200 Subject: [PATCH] add raw output --- .github/workflows/release.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9ffcc29cd..09923c482 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,15 +44,10 @@ jobs: id: s3_objects run: echo "s3_objects=${{ env.S3_OBJECTS_TEMPLATE }}" >> $GITHUB_OUTPUT - - name: Aws cli test - run: | - aws --version - aws s3 ls s3://distribution.concordium.software/tools/linux/test/database-exporter_7.0.5-0.deb --summarize - - name: Use the S3 objects defined as environment variable run: | - set -e - echo '${{ steps.s3_objects.outputs.s3_objects }}' | jq '. | to_entries[] | .value' | while read -r ARN; do + set -e -o pipefail + echo '${{ steps.s3_objects.outputs.s3_objects }}' | jq -r '. | to_entries[] | .value' | while read -r ARN; do echo "Checking for object at: $ARN" TOTAL_FOUND_OBJECTS=$(aws s3 ls $ARN --summarize | grep "Total Objects: " | sed "s/[^0-9]*//g") if [ "$TOTAL_FOUND_OBJECTS" -ne "0" ]; then