Skip to content
Snippets Groups Projects
Unverified Commit 941018cf authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

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: default avatarDaniel Kesselberg <mail@danielkesselberg.de>
parent 3e9f9ea0
No related branches found
No related tags found
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment