Skip to content

Commit

Permalink
ci: more relaxed aptly upload
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Jan 11, 2025
1 parent 53e4e2a commit 73695af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scripts/upload-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ cleanup() {
}
trap cleanup EXIT

sleeptime=10
retries=20
wait_task()
{
_id=$1
_success=0
for t in `seq 180`
for t in `seq $retries`
do
jsonret=`curl -fsS -u $aptly_user:$aptly_password ${aptly_api}/api/tasks/$_id`
_state=`echo $jsonret | jq .State`
Expand All @@ -84,7 +86,7 @@ wait_task()
echo Error: task failed
return 1
fi
sleep 1
sleep $sleeptime
done
if [ "$_success" -ne 1 ]; then
echo Error: task timeout
Expand Down

0 comments on commit 73695af

Please sign in to comment.