ghci: further error-handling fixes
This commit is contained in:
parent
daa8beedbb
commit
c7e549f3b8
|
@ -6,8 +6,9 @@ set -e
|
||||||
|
|
||||||
export GH_NO_UPDATE_NOTIFIER=1
|
export GH_NO_UPDATE_NOTIFIER=1
|
||||||
|
|
||||||
ghoutput=$(gh pr checks)
|
# GitHub CLI returns non-zero error code if checks are not complete:
|
||||||
if [ ! $? -eq 0 ]; then
|
ghoutput=$(gh pr checks || true)
|
||||||
|
if ! echo "$ghoutput" | grep -q 'https://'; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue