diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 238b46b66f24a55beb7148b1919cd82b9b6cc503..e6ef077fb30dc8a14082662962436970e0d2ea1c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,7 @@ autoupdate:
           -e 's/^(release_stable_([0-9]{4})-([0-9]{2})-([0-9]{2}))$/\1	0.0.\2\3\4/p' \
           -e 's/^(release_stable_([0-9]{4})-([0-9]{2})-([0-9]{2})([a-z]*))$/\1	0.0.\2\3\4.\5/p' \
     | tail -n 3 | while read upstream_version debian_version; do
-      if [ "$(git tag -l "$debian_version")" == "" ]; then
+      if [ "$(git tag -l "v$debian_version")" == "" ]; then
         printf "variables:\n  UPSTREAM_VERSION: ${upstream_version}" > gitlabci-version.yml
         git commit -m "[autoupdate] Bump version to ${upstream_version}" gitlabci-version.yml
         git tag "v${debian_version}"