From af46c34b8acbfc68361f09409bbb5ee141c5cac2 Mon Sep 17 00:00:00 2001 From: Michael Balsillie Date: Sun, 21 Aug 2022 23:03:09 +1200 Subject: [PATCH] syntax --- .woodpecker/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index 864565d..5af5a2b 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -22,14 +22,14 @@ pipeline: image: code.balsillie.net/containers/debian:11-slim-bash pull: false commands: - - if [[ $TAG =~ ^v1\...\..rc.$ ]] - then - echo "Tag ${TAG} appears to be a release candidate, terminating build." && exit 1 - elif [[ $TAG =~ ^v1\...\..$ ]] - then - echo "Tag ${TAG} appears to be a release tag, proceeding." && exit 0 - else - echo "Unable to determine nature of tag, terminating build." && exit 1 + - if [[ $TAG =~ ^v1\...\..rc.$ ]] \ + then \ + echo "Tag ${TAG} appears to be a release candidate, terminating build." && exit 1 \ + elif [[ $TAG =~ ^v1\...\..$ ]] \ + then \ + echo "Tag ${TAG} appears to be a release tag, proceeding." && exit 0 \ + else \ + echo "Unable to determine nature of tag, terminating build." && exit 1 \ fi clone-source: image: docker:git