Update regex to also match version/x.y.z
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
fcd5fc667e
commit
c7d3556b72
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo
|
||||
if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version\/noid\/.+ ]]; then
|
||||
printenv
|
||||
|
||||
if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version(\/noid)?\/([0-9.]+) ]]; then
|
||||
echo "Skip CA bundle check"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue