Skip to content

Commit

Permalink
ci: Fix release version check
Browse files Browse the repository at this point in the history
The git tag are vX.Y.Z and the VERSION file is just X.Y.Z so need to
deal with the `v` in the check.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information
galak committed Oct 2, 2020
1 parent 1a784d7 commit 9c0bef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .buildkite/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:

- >
if [ -n "${BUILDKITE_TAG}" ]; then
if [ "${BUILDKITE_TAG}" != $${release} ]; then
if [ "${BUILDKITE_TAG}" != v"$${release}" ]; then
echo "Need to fix VERSION file. Tag ${BUILDKITE_TAG} doesn't match $${release}"
exit 1
fi
Expand Down

0 comments on commit 9c0bef9

Please sign in to comment.