Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Use constant for the SDK version
docs: Update README.md & CONTRIBUTING.md (#650) * docs: Update README.md & CONTRIBUTING.md * Add slogan test: Add dsn to e2e test config (#657) * test: Add dsn to e2e test config * Add phpstan exclusion Fix Symfony 6 deprecations in E2E test (#656) fix: Update span ops (#655) docs: Update changelog (#658) Prepare release 4.3.1 (#659) Update phpstan.neon Add bump-version.sh
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -eux | ||
|
||
# if [ "$(uname -s)" != "Linux" ]; then | ||
# echo "Please use the GitHub Action." | ||
# exit 1 | ||
# fi | ||
|
||
SCRIPT_DIR="$( dirname "$0" )" | ||
cd $SCRIPT_DIR/.. | ||
|
||
OLD_VERSION="${1}" | ||
NEW_VERSION="${2}" | ||
|
||
echo "Current version: $OLD_VERSION" | ||
echo "Bumping version: $NEW_VERSION" | ||
|
||
function replace() { | ||
! grep "$2" $3 | ||
perl -i -pe "s/$1/$2/g" $3 | ||
grep "$2" $3 # verify that replacement was successful | ||
} | ||
|
||
replace "SDK_VERSION = '[0-9.]+'" "SDK_VERSION = '$NEW_VERSION'" ./src/SentryBundle.php |