Skip to content

Commit 7fb78b3

Browse files
committed
Fixed script in case no branch for next exists
Build now prints a message when no devlop-* branch is found instead of crashing
1 parent 786f9b5 commit 7fb78b3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build-next.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@ CURL="curl -sS"
3030
# Querying the Github API to fetch all branches
3131
NEXT=$($CURL "${URL_RELEASES}" | jq -r "$JQ_NEXT")
3232

33-
# shellcheck disable=SC2068
34-
./build.sh "${NEXT}" $@
33+
if [ -n "$NEXT" ]; then
34+
# shellcheck disable=SC2068
35+
./build.sh "${NEXT}" $@
36+
else
37+
echo "No branch matching 'develop-*' found"
38+
echo "::set-output name=skipped::true"
39+
fi

0 commit comments

Comments
 (0)