]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use DRONE_SOURCE_BRANCH instead of DRONE_COMMIT_REFSPEC
authorDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 15 May 2019 17:45:58 +0000 (19:45 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 15 May 2019 20:34:38 +0000 (20:34 +0000)
Looks like DRONE_COMMIT_REFSPEC is not available anymore on Drone 1.x

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
build/ca-bundle-checker.sh

index 4497642fd95a53a89aac7a7835deb75a2a8cd8d2..4d11abc2c74705acd173831c19cce2ee1812a2df 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/env bash
 
-printenv
-
-if [[ -n ${DRONE_COMMIT_REFSPEC} &&  ! ${DRONE_COMMIT_REFSPEC} =~ version(\/noid)?\/([0-9.]+) ]]; then
+if [[ -n ${DRONE_SOURCE_BRANCH} &&  ! ${DRONE_SOURCE_BRANCH} =~ version(\/noid)?\/([0-9.]+) ]]; then
     echo "Skip CA bundle check"
     exit 0
 fi