Skip to content

Commit

Permalink
Fix production release script to not include changes in testing branch (
Browse files Browse the repository at this point in the history
  • Loading branch information
daneryl authored Aug 14, 2024
1 parent 029b497 commit 393cde3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
gh_token=${3}

release_version="$(yarn version | grep version: | cut -d" " -f4)"
previous_tag="$(git tag -l --sort=committerdate | grep -v "\-rc" | tail -n1)"
previous_tag="$(git tag -l --sort=committerdate | grep -v "\-rc"| grep -v "\-testing" | tail -n1)"
release_notes="$(git log --oneline "$previous_tag".. | grep -v Merge | grep "(.*)" | cut -d" " -f2- | awk '{print "* " $0}')"

echo -e "## What's changed\n\n$release_notes\n\n**Full Changelog**: https://github.com/huridocs/uwazi/compare/$previous_tag...$release_version" > release_notes.txt
Expand Down

0 comments on commit 393cde3

Please sign in to comment.