Skip to content

Commit

Permalink
Revert "feat: add support for adding major release description to the…
Browse files Browse the repository at this point in the history
… release notes"
  • Loading branch information
jackton1 authored Sep 23, 2022
1 parent 4ae6f00 commit b1ed4ea
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,8 @@ git fetch "$INPUTS_REMOTE" +refs/tags/*:refs/tags/*
NEW_TAG=${GITHUB_REF/refs\/tags\//}
MAJOR_VERSION=$(echo "$NEW_TAG" | cut -d. -f1)

if git tag -l "$MAJOR_VERSION"; then
echo "Adding $MAJOR_VERSION to release notes..."
{
echo "# Changes in $MAJOR_VERSION"
gh release view "$MAJOR_VERSION" --json body --jq '.body'
printf "\n---\n\n"
} >> "$INPUTS_RELEASE_NOTES_FILE"
fi

for tag in $(git tag -l "$MAJOR_VERSION.*"); do
echo "Adding $tag to release notes..."
echo "Adding $tag to release notes"
{
echo "# Changes in $tag"
gh release view "$tag" --json body --jq '.body'
Expand Down

0 comments on commit b1ed4ea

Please sign in to comment.