[GHA] polish up

This commit is contained in:
aboyko
2024-11-07 00:53:50 -05:00
parent a90de2c314
commit 6d3b8af79e
2 changed files with 3 additions and 54 deletions

View File

@@ -7,7 +7,7 @@ timeout=$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
aws s3 cp $in_file s3://$AWS_S3_BUCKET/exes-to-sign/$id.exe --no-progress
for (( i=wait_time; i<timeout; i+=wait_time )) ; {
sleep $wait_time
object_exists=$(aws s3api head-object --bucket $CDN_BUCKET --key spring-tools/exes-signed/$id.exe || true)
@@ -18,5 +18,5 @@ for (( i=wait_time; i<timeout; i+=wait_time )) ; {
break
fi
}
aws s3 mv s3://$AWS_S3_BUCKET/exes-signed/$id.exe $out_file
aws s3 mv s3://$AWS_S3_BUCKET/exes-signed/$id.exe $out_file --no-progress