Skip to content

Commit

Permalink
feat(release): Set plugin version on pre-release (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
iker-barriocanal authored Jul 7, 2021
1 parent 91c8dff commit 00d410f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -eux

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR/..

OLD_VERSION="${1}"
NEW_VERSION="${2}"

GRADLE_FILEPATH="plugin-build/gradle.properties"

# Replace `version` with the given version
VERSION_NAME_PATTERN="version"
sed -i "" -e "s/$VERSION_NAME_PATTERN = .*$/$VERSION_NAME_PATTERN = $NEW_VERSION/g" $GRADLE_FILEPATH

0 comments on commit 00d410f

Please sign in to comment.