Skip to content

Commit

Permalink
refactor: inline notes variable when creating gh release
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Sep 29, 2024
1 parent 68e3b78 commit 87c38dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ function release::create_github_release() {
fi

local commits=$(git log --oneline "$previous_tag".."$new_tag")
local notes=$(echo -e "$commits\n\n$full_changelog")

if [[ "$DRY_RUN" == false ]]; then
gh release create "$new_tag" \
--title "$release_name" \
--notes "$notes"
--notes "$(echo -e "$commits\n\n$full_changelog")"
else
echo -e "${COLOR_CYAN}--dry-run enabled. Skipping creating a release ($release_name)${COLOR_RESET}"
fi
Expand Down

0 comments on commit 87c38dc

Please sign in to comment.