Skip to content

Commit 93a50ba

Browse files
committed
ci: fix version match
1 parent 8e49d3d commit 93a50ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/init.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
set -eo pipefail
33

44
FROM=$(grep 'RENOVATE_VERSION=' Dockerfile)
5-
SEMVER_REGEX=":(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)"
5+
SEMVER_REGEX="=(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)"
66

77

88
if ! [[ "$FROM" =~ $SEMVER_REGEX ]]; then
99
echo Not a semver tag - skipping
10-
exit
10+
exit 1
1111
fi
1212

1313
major=${BASH_REMATCH[1]}
@@ -16,5 +16,5 @@ patch=${BASH_REMATCH[3]}
1616

1717

1818
VERSION="${major}.${minor}.${patch}"
19-
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
2019
echo "Found version: ${VERSION}"
20+
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)