diff --git a/scripts/gitlab-build.sh b/scripts/gitlab-build.sh index 6bebb85e6..10edd711e 100755 --- a/scripts/gitlab-build.sh +++ b/scripts/gitlab-build.sh @@ -275,7 +275,7 @@ case $BUILD_PLATFORM in snapcraft clean echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image" sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml - if [[ "$CI_BUILD_REF_NAME" = "stable" ]]; + if [[ "$CI_BUILD_REF_NAME" = "stable" || "$VER" == *1.8* ]]; then sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml; fi