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\/very_good_test_runner\/pull\/\1))/p")
47
+
48
+
if [[ "$markdown_commits"=="" ]];then
49
+
echo"No commits since last tag, can't update."
50
+
exit 0
51
+
fi
52
+
commits=$(echo "$markdown_commits"| sed -En "s/^/- /p")
53
+
54
+
echo"Updating version to $new_version"
55
+
sed -i ''"s/version: $old_version/version: $new_version/g" pubspec.yaml
56
+
57
+
# Update dart file with new version.
58
+
dart run build_runner build --delete-conflicting-outputs > /dev/null
59
+
60
+
if grep -q v$new_version"CHANGELOG.md";then
61
+
echo"CHANGELOG already contains version $new_version."
62
+
exit 1
63
+
fi
64
+
65
+
# Add a new version entry with the found commits to the CHANGELOG.md.
0 commit comments