You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
markdown_commits=$(echo "$raw_commits"| sed -En "s/\(#([0-9]+)\)/([#\1](https:\/\/github.com\/VeryGoodOpenSource\/flutter_web_preloader\/pull\/\1))/p")
50
+
51
+
if [[ "$markdown_commits"=="" ]];then
52
+
echo"No commits since last tag, can't update."
53
+
exit 0
54
+
fi
55
+
commits=$(echo "$markdown_commits"| sed -En "s/^/- /p")
56
+
57
+
echo"Updating version to $new_version"
58
+
if [ -f"brick.yaml" ];then
59
+
sed -i ''"s/version: $old_version/version: $new_version/g" brick.yaml
60
+
fi
61
+
62
+
if grep -q v$new_version"CHANGELOG.md";then
63
+
echo"CHANGELOG already contains version $new_version."
64
+
exit 1
65
+
fi
66
+
67
+
# Add a new version entry with the found commits to the CHANGELOG.md.
0 commit comments