From ae799a737fe6f173cd450c11ee9df6c6ebb259d9 Mon Sep 17 00:00:00 2001 From: aboyko Date: Wed, 6 Nov 2024 21:52:30 -0500 Subject: [PATCH] [GHA] corrections --- .github/scripts/sign-exe.sh | 5 +++-- .github/workflows/gh-hosted-eclipse-distro-build.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/sign-exe.sh b/.github/scripts/sign-exe.sh index c566e0781..d3835d330 100755 --- a/.github/scripts/sign-exe.sh +++ b/.github/scripts/sign-exe.sh @@ -3,13 +3,14 @@ in_file=$1 out_file=$2 id=$3 wait_time=$4 +number_of_sleeps=$5 in_filename="$(basename -- $in_file)" echo "Copying ${in_file} to s3 s3://${AWS_S3_BUCKET}/exes-to-sign/${id}.exe for signing" aws s3 cp $in_file s3://$AWS_S3_BUCKET/exes-to-sign/$id.exe -for i in {1..10} +for i in {1..$number_of_sleeps} do - wait $wait_time + sleep $wait_time aws s3api head-object --bucket $CDN_BUCKET --key spring-tools/exes-signed/$id.exe || NOT_EXIST=true if [ $NOT_EXIST ]; then echo "Waited ${wait_time} seconds but ${in_filename} hasn't been signed yet..." diff --git a/.github/workflows/gh-hosted-eclipse-distro-build.yml b/.github/workflows/gh-hosted-eclipse-distro-build.yml index a55a088c1..692b5121b 100644 --- a/.github/workflows/gh-hosted-eclipse-distro-build.yml +++ b/.github/workflows/gh-hosted-eclipse-distro-build.yml @@ -34,6 +34,7 @@ env: AWS_ENDPOINT_URL_S3: ${{ secrets.CDN_S3_ENDPOINT }} AWS_S3_BUCKET: ${{ secrets.CDN_BUCKET }}/spring-tools DOWNLOAD_URL_ROOT: https://cdn.spring.io/spring-tools + CDN_BUCKET: ${{ secrets.CDN_BUCKET }} jobs: