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
parent
commit
941018cfe5
No account linked to committer's email address
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      build/ca-bundle-checker.sh

+ 1
- 3
build/ca-bundle-checker.sh 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

Loading…
Cancel
Save