Skip to content

Commit

Permalink
Merge pull request #1239 from saschagrunert/release-notes-script
Browse files Browse the repository at this point in the history
Use previous and latest tag from git in release script
  • Loading branch information
k8s-ci-robot authored Aug 15, 2023
2 parents 3c91ebf + 552f738 commit 1409e91
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 1409e91

Please sign in to comment.