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
parent 3e9f9ea06b
commit 941018cfe5
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
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