From cf2c794c6e436ed99934d1d1f856f350963d66f6 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 11 Dec 2022 13:07:20 -1000 Subject: [PATCH] ;dev: tools/ciwatch: succeed if no runs are in progress --- tools/ciwatch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/ciwatch b/tools/ciwatch index b6e7b3954..5d51ea0e9 100755 --- a/tools/ciwatch +++ b/tools/ciwatch @@ -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