From cb3ca1648e94e408eed7a1eaecd10c70a03ba08e Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Wed, 15 May 2019 19:45:58 +0200 Subject: Use DRONE_SOURCE_BRANCH instead of DRONE_COMMIT_REFSPEC Looks like DRONE_COMMIT_REFSPEC is not available anymore on Drone 1.x Signed-off-by: Daniel Kesselberg --- build/ca-bundle-checker.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build') diff --git a/build/ca-bundle-checker.sh b/build/ca-bundle-checker.sh index 4497642fd95..4d11abc2c74 100755 --- a/build/ca-bundle-checker.sh +++ b/build/ca-bundle-checker.sh @@ -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 -- cgit v1.2.3