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 <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-05-15 19:45:58 +02:00 committed by Backportbot
parent c7d3556b72
commit 23bb5f573a
1 changed files with 1 additions and 3 deletions

View File

@ -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