Skip to content

Commit 79efd94

Browse files
poll
1 parent 1ed0222 commit 79efd94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/scripts/gitlab

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ poll.commit.status ()
9090
attempt=$(($attempt + 1))
9191
status=$(get.commit.status "${1}" "${2}")
9292

93-
info "polling commit status: ${attempt} or ${POLL_ATTEMPTS}"
93+
info "polling commit status: ${attempt}"
9494

95-
if [ "${status}" != "${laststatus}" ]; then
96-
info "- pipeline in ${status} was ${laststatus:-}"
97-
fi
98-
99-
case "${status}" in
95+
case "${status:-}" in
10096
success) return 0 ;;
10197
failed) return 1 ;;
10298
canceled) return 1 ;;
99+
*) if [ "${status}" != "${laststatus}" ]; then
100+
info "- pipeline in ${status} was ${laststatus:-}"
101+
fi
102+
;;
103103
esac
104104

105105
if [ ${attempt} -ge ${POLL_ATTEMPTS} ]; then

0 commit comments

Comments
 (0)