Skip to content

Commit

Permalink
Merge pull request #35 from tj-actions/revert-34-feat/add-support-for…
Browse files Browse the repository at this point in the history
…-adding-major-release-description-to-the-release-notes

Revert "feat: add support for adding major release description to the release notes"
  • Loading branch information
jackton1 authored Sep 23, 2022
2 parents 4ae6f00 + b1ed4ea commit c8443ed
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 c8443ed

Please sign in to comment.