diff --git a/doc/rpm-build/release-appcenter.sh b/doc/rpm-build/release-appcenter.sh index f6b9f87481..71c2d38598 100755 --- a/doc/rpm-build/release-appcenter.sh +++ b/doc/rpm-build/release-appcenter.sh @@ -42,6 +42,16 @@ done exit 1 } +# check $version is already in changelog +grep -q "$version.$packaging" $(dirname $0)/debian.changes || { + git pull + grep -q "$version.$packaging" $(dirname $0)/debian.changes || { + echo "No $version.$packaging in changelog ($(dirname $0)/debian.changes)!" + echo "Did you pushed it to the branch?" + exit 1 + } +} + ucs=4.4 univention-appcenter-control list | tee /tmp/ucs-apps | egrep "$ucs/egroupware=$version.$packaging$postfix" || { @@ -69,4 +79,4 @@ sed -i "" \ -e "s|image:.*docker.software-univention.de/egroupware-push.*|image: phpswoole/swoole:5.0-php8.1-alpine|" \ -e "s|image:.*docker.software-univention.de/egroupware-nginx.*|image: nginx:stable-alpine|" \ /tmp/compose -$debug univention-appcenter-control upload $ucs/egroupware=$version.$packaging$postfix /tmp/compose +$debug univention-appcenter-control upload $ucs/egroupware=$version.$packaging$postfix /tmp/compose \ No newline at end of file