Skip to content

Commit 73695af

Browse files
committed
ci: more relaxed aptly upload
1 parent 53e4e2a commit 73695af

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/scripts/upload-artifacts.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ cleanup() {
6767
}
6868
trap cleanup EXIT
6969

70+
sleeptime=10
71+
retries=20
7072
wait_task()
7173
{
7274
_id=$1
7375
_success=0
74-
for t in `seq 180`
76+
for t in `seq $retries`
7577
do
7678
jsonret=`curl -fsS -u $aptly_user:$aptly_password ${aptly_api}/api/tasks/$_id`
7779
_state=`echo $jsonret | jq .State`
@@ -84,7 +86,7 @@ wait_task()
8486
echo Error: task failed
8587
return 1
8688
fi
87-
sleep 1
89+
sleep $sleeptime
8890
done
8991
if [ "$_success" -ne 1 ]; then
9092
echo Error: task timeout

0 commit comments

Comments
 (0)