Skip to content

Commit 6a8943f

Browse files
committed
feat: Added bump version script
1 parent c15c58a commit 6a8943f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/bump-version.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
cd $SCRIPT_DIR/..
6+
7+
OLD_VERSION="${1}"
8+
NEW_VERSION="${2}"
9+
10+
echo "Current version: ${OLD_VERSION}"
11+
echo "Bumping version: ${NEW_VERSION}"
12+
13+
VERSION_RE=${VERSION//\./\\.}
14+
find . -name Cargo.toml -type f -exec sed -i '' -e "1,/^version/ s/^version.*/version = \"${NEW_VERSION}\"/" {} \;
15+
cargo update -p sentry

0 commit comments

Comments
 (0)