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\/pub_updater\/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"pubspec.yaml" ];then
59
+
sed -i ''"s/version: $old_version/version: $new_version/g" pubspec.yaml
60
+
fi
61
+
62
+
# Update dart file with new version.
63
+
dart run build_runner build --delete-conflicting-outputs > /dev/null
64
+
65
+
if grep -q v$new_version"CHANGELOG.md";then
66
+
echo"CHANGELOG already contains version $new_version."
67
+
exit 1
68
+
fi
69
+
70
+
# Add a new version entry with the found commits to the CHANGELOG.md.
0 commit comments