Skip to content

Commit

Permalink
Use bump_rpm_packaging to do git operations
Browse files Browse the repository at this point in the history
Obal uses a complex branch name and an obscure commit message. This
simplifies the whole workflow and brings it more in line with the Debian
side.
  • Loading branch information
ekohl committed Sep 5, 2023
1 parent f3c8653 commit dee994a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bump_rpm_packaging
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ git checkout -b rpm/release-$PROJECT-$FULLVERSION $PACKAGING_GIT_REMOTE/$REMOTE_

if [[ $FULLVERSION == *-rc* ]]; then
PRERELEASE=${FULLVERSION##*-}
obal update --commit --version ${FULLVERSION%%-rc*} --prerelease ${PRERELEASE} --release keep $RPM_PACKAGES
obal update --version ${FULLVERSION%%-rc*} --prerelease ${PRERELEASE} --release keep $RPM_PACKAGES
else
obal update --commit --version $FULLVERSION $RPM_PACKAGES
obal update --version $FULLVERSION $RPM_PACKAGES
fi

git commit -m "Release $FULLVERSION"

if [[ $PACKAGING_PR == true ]] ; then
git phr -m "Release $FULLVERSION" -b "$REMOTE_BRANCH"
else
Expand Down

0 comments on commit dee994a

Please sign in to comment.