diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index a7308ca..f7a6cd7 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -22,18 +22,18 @@ 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: