;dev: tools/ciwatch: succeed if no runs are in progress

This commit is contained in:
Simon Michael 2022-12-11 13:07:20 -10:00
parent c0b63c14e9
commit cf2c794c6e

View File

@ -11,4 +11,8 @@ cilatestrunning() {
}
LATESTRUNNING=$(cilatestrunning)
gh run watch -i"$INTERVAL" ${LATESTRUNNING:+$LATESTRUNNING} --exit-status
if [[ -n $LATESTRUNNING ]]; then
gh run watch -i"$INTERVAL" "$LATESTRUNNING" --exit-status
else
echo "no runs in progress, attempting push"
fi