Skip to content

Commit

Permalink
add raw output
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemand committed Oct 18, 2024
1 parent 7e1e4f1 commit 4155f66
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4155f66

Please sign in to comment.