mirror of
https://github.com/armbian/actions.git
synced 2026-01-06 10:36:19 -08:00
Add timeout on command as it can hang sometimes
This commit is contained in:
@@ -130,7 +130,7 @@ runs:
|
||||
echo -ne "$secs\033[0K\r"
|
||||
sleep 1
|
||||
: $((secs--))
|
||||
if nc -z "${{ inputs.DUT_IP }}" 22 -w 15 2>/dev/null; then break; fi
|
||||
if timeout 3 nc -z "${{ inputs.DUT_IP }}" 22 -w 15 2>/dev/null; then break; fi
|
||||
done
|
||||
if [ $secs -eq 0 ]; then echo "STATUS=timeout" >> $GITHUB_ENV; fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user