matrix-service-synapse/check-tag.sh
Michael Balsillie add6f902dc
Some checks failed
ci/woodpecker/push/main Pipeline failed
use script instead
2022-08-21 23:19:54 +12:00

11 lines
319 B
Bash
Executable File

#!/bin/bash
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