[GHA] corrections

This commit is contained in:
aboyko
2024-11-06 21:52:30 -05:00
parent 1c5f41f6d8
commit ae799a737f
2 changed files with 4 additions and 2 deletions

View File

@@ -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..."