update release script
This commit is contained in:
parent
d6c6c0d72d
commit
7257cdf9c4
|
|
@ -16,8 +16,8 @@ echo "Updating version to $VERSION in $CARGO_TOML..."
|
||||||
sed -i "0,/^version = .*/s/^version = .*/version = \"$VERSION\"/" "$CARGO_TOML"
|
sed -i "0,/^version = .*/s/^version = .*/version = \"$VERSION\"/" "$CARGO_TOML"
|
||||||
|
|
||||||
echo "Committing to $MAIN_BRANCH..."
|
echo "Committing to $MAIN_BRANCH..."
|
||||||
git add "$CARGO_TOML"
|
git add "$CARGO_TOML" Changelog.md
|
||||||
git commit -m "Bump version to $VERSION"
|
git diff --cached --quiet || git commit -m "Bump version to $VERSION"
|
||||||
|
|
||||||
echo "Checking out the release branch..."
|
echo "Checking out the release branch..."
|
||||||
git checkout $RELEASE_BRANCH
|
git checkout $RELEASE_BRANCH
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue