Skip to content

Commit

Permalink
chore: update release.sh to select correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 6, 2024
1 parent 603f0ac commit 6456e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ step "Releasing Pact Go"

# Get current versions
log "Finding current version"
version=$(cat command/version.go | egrep -o "v([0-9\.]+)-?([a-zA-Z\-\+\.0-9]+)?")
version=$(cat command/version.go | grep -v "cliToolsVersion" | egrep -o "v([0-9\.]+)-?([a-zA-Z\-\+\.0-9]+)?")
lastVersion=$(git log --grep='chore(release)' | grep chore | head -n1 | egrep -o "v([0-9\.]+)-?([a-zA-Z\-]+)?")
date=$(date "+%d %B %Y")

Expand Down

0 comments on commit 6456e82

Please sign in to comment.