Detect stable branches on the fly

Stable branches are 'master' or 'stable-*'.

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-06-24 14:37:21 +02:00
parent 7a6fa9a444
commit 050fb81a32
No known key found for this signature in database
GPG Key ID: FECE3A7222C52A4E

View File

@ -8,9 +8,15 @@
#6: DRONE_BUILD_NUMBER
#7: PULL_REQUEST_NUMBER
stableBranch="master"
repository="talk"
if [[ $3 = \stable-* ]] ; then
stableBranch=$3
else
stableBranch="master"
fi
ruby scripts/analysis/lint-up.rb $1 $2 $3
lintValue=$?