Skip to content

Commit

Permalink
refactor: Use bash to increment patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Aug 23, 2023
1 parent dfe0b8f commit 567f8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
LATEST_VERSION="0.0.0"
fi
# Increment the patch version
LATEST_VERSION=$(semver bump patch $LATEST_VERSION)
# Increment the patch version using bash
LATEST_VERSION=$(echo "$LATEST_VERSION" | awk -F. -v OFS=. '{$NF = $NF + 1;} 1')
VERSION=v$LATEST_VERSION-$RELEASE_SUFFIX
Expand Down

0 comments on commit 567f8ec

Please sign in to comment.