Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump-version: install svu manually #410

Merged
merged 1 commit into from
Oct 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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