Browse Source
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>
tags/v17.0.0beta1
Daniel Kesselberg
5 years ago
No account linked to committer's email address
|
|
@@ -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 |