[GHA] wrap up

This commit is contained in:
aboyko
2024-11-07 00:31:13 -05:00
parent 3b5d081f4d
commit a90de2c314
2 changed files with 2 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ echo "Copying ${in_file} to s3 s3://${AWS_S3_BUCKET}/exes-to-sign/${id}.exe for
aws s3 cp $in_file s3://$AWS_S3_BUCKET/exes-to-sign/$id.exe
for (( i=wait_time; i<timeout; i+=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
object_exists=$(aws s3api head-object --bucket $CDN_BUCKET --key spring-tools/exes-signed/$id.exe || true)
if [ -z "$object_exists" ]; then
echo "Waited ${i} seconds but ${in_filename} hasn't been signed yet..."
else
echo "Successfully signed file ${in_filename}"