Skip to content

Commit ae799a7

Browse files
committed
[GHA] corrections
1 parent 1c5f41f commit ae799a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/scripts/sign-exe.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ in_file=$1
33
out_file=$2
44
id=$3
55
wait_time=$4
6+
number_of_sleeps=$5
67

78
in_filename="$(basename -- $in_file)"
89
echo "Copying ${in_file} to s3 s3://${AWS_S3_BUCKET}/exes-to-sign/${id}.exe for signing"
910
aws s3 cp $in_file s3://$AWS_S3_BUCKET/exes-to-sign/$id.exe
10-
for i in {1..10}
11+
for i in {1..$number_of_sleeps}
1112
do
12-
wait $wait_time
13+
sleep $wait_time
1314
aws s3api head-object --bucket $CDN_BUCKET --key spring-tools/exes-signed/$id.exe || NOT_EXIST=true
1415
if [ $NOT_EXIST ]; then
1516
echo "Waited ${wait_time} seconds but ${in_filename} hasn't been signed yet..."

.github/workflows/gh-hosted-eclipse-distro-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ env:
3434
AWS_ENDPOINT_URL_S3: ${{ secrets.CDN_S3_ENDPOINT }}
3535
AWS_S3_BUCKET: ${{ secrets.CDN_BUCKET }}/spring-tools
3636
DOWNLOAD_URL_ROOT: https://cdn.spring.io/spring-tools
37+
CDN_BUCKET: ${{ secrets.CDN_BUCKET }}
3738

3839
jobs:
3940

0 commit comments

Comments
 (0)