Skip to content

Commit

Permalink
Use previous and latest tag from git in release script
Browse files Browse the repository at this point in the history
We cannot rely on the discover modes of the release notes tool, because
we cut patch releases from time to time from `master`. Means we now
simply select the latest and previous tag from the git command.

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Aug 14, 2023
1 parent 3c91ebf commit 552f738
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hack/release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ curl -sSfL --retry 5 --retry-delay 10 -o $BINARY \
https://github.com/kubernetes/release/releases/download/$VERSION/release-notes-linux-amd64
chmod +x $BINARY

PREVOUS_TAG=$(git tag | tail -2 | head -1)
LATEST_TAG=$(git tag | tail -1)

$BINARY \
--discover patch-to-patch \
--org kubernetes-sigs \
--repo cri-tools \
--required-author "" \
--branch master \
--start-rev "$PREVOUS_TAG" \
--end-rev "$LATEST_TAG" \
--output release-notes.md

0 comments on commit 552f738

Please sign in to comment.