From 8ffe6529c9084428d12f561d2d0d973f5388687e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Tue, 10 Apr 2018 10:13:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Reduce=20number=20of=20bra?= =?UTF-8?q?nches=20to=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-branches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-branches.sh b/build-branches.sh index 0e28363..1dd1131 100755 --- a/build-branches.sh +++ b/build-branches.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Builds all published branches +# Builds develop, develop-* and master branches ORIGINAL_GITHUB_REPO="digitalocean/netbox" GITHUB_REPO="${GITHUB_REPO-$ORIGINAL_GITHUB_REPO}" @@ -7,7 +7,7 @@ URL_RELEASES="https://api.github.com/repos/${GITHUB_REPO}/branches" CURL="curl -sS" -BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+")') +BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+") | match("^(master|develop).*") | .string') ERROR=0