diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f9d63be5d320921e7bd200fc2474cef147bae5be..d495e2eceea951982e0cc6cfaec4db5cfd9ad616 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,5 +29,5 @@ publish:
     - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version
   script:
     - rebar3 update
-    - echo Y | rebar3 hex publish
+    - yes | rebar3 hex publish
     - rebar3 hex docs