From 05127d73066f5d4d62a37ac4a4fa4c9feb6d4356 Mon Sep 17 00:00:00 2001 From: Michael Balsillie Date: Sun, 21 Aug 2022 22:36:14 +1200 Subject: [PATCH] syntax fucking --- .woodpecker/main.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index f7a6cd7..b3ea22c 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -22,18 +22,15 @@ pipeline: image: debian:11-slim pull: true 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 \ - fi + - 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 commands: