Update reno update to check whether series exists

Currently there is an error happening if a deliverable does not have the
series defined which is being transitioned to unmaintained. Check
whether the series file actually exists before trying to modify it and
exit gracefully if it doesn't.

Change-Id: I8817a95656bad0b03243a415c4d3d364e85c048c
This commit is contained in:
Dr. Jens Harbott 2024-02-06 09:23:08 +01:00
parent b857857055
commit d60e16aad4
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,11 @@ REPO=$2
cd $REPO
if [[ ! -f releasenotes/source/${SERIES}.rst ]]; then
echo "No releasenotes source defined for series ${SERIES}, nothing to update."
exit 0
fi
commit_msg="reno: Update master for unmaintained/${SERIES}
Update the ${SERIES} release notes configuration to build from