Skip to content

Commit

Permalink
Merge pull request #410 from planetscale/fatih-fix-svu
Browse files Browse the repository at this point in the history
bump-version: install `svu` manually
  • Loading branch information
fatih authored Oct 18, 2021
2 parents 8be02c8 + 3a01ace commit 394c1a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
set -eu

WORKDIR=$(pwd)
SVU_BIN="${WORKDIR}/svu"

echo "+++ :construction: Installing 'svu' tool"
curl -sfL https://install.goreleaser.com/github.com/caarlos0/svu.sh | bash -s -- -b $WORKDIR
curl -L -o /tmp/svu_linux_x86_64.tar.gz https://github.com/caarlos0/svu/releases/download/v1.8.0/svu_1.8.0_linux_amd64.tar.gz
cd /tmp && tar -zxvf svu_linux_x86_64.tar.gz
cd $WORKDIR

git fetch --tags

RELEASE_VERSION=$($SVU_BIN minor)
RELEASE_VERSION=$(/tmp/svu minor)

echo "+++ :boom: Bumping to version $RELEASE_VERSION"

Expand Down

0 comments on commit 394c1a7

Please sign in to comment.