Remove translations for releasenotes from branches

Releasenotes publishing happens on master - and only from there. This is
the case for both original content and translations. Repos that get
branched might contain releasenotes translations, so remove them to not
have outdated files there.

Change-Id: I25fe1b2ac89cf34611f55048cb5d1317dd384aa1
This commit is contained in:
Andreas Jaeger 2016-09-25 07:39:05 +02:00
parent 0e31b42c27
commit 3819396cc0

View File

@ -157,6 +157,7 @@ function propose_releasenotes {
# testing are set up in zuul/layout.yaml. If releasenotes exist,
# they get pushed to the translation server.
# Note that releasenotes only get translated on master.
if [[ "$version" == "master" && -f releasenotes/source/conf.py ]]; then
# Note that we need to generate these so that we can calculate
@ -172,6 +173,12 @@ function propose_releasenotes {
git add releasenotes/source/locale/
fi
fi
# Remove any releasenotes translations from stable branches, they
# are not needed there.
if [[ "$version" != "master" && -d releasenotes/source/locale ]]; then
git rm -rf releasenotes/source/locale
fi
}