Skip to content

Commit

Permalink
chore: fix auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Jan 15, 2025
1 parent 06de709 commit ba24ca4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/auto-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ jobs:
- name: Bump version
id: bump_version
run: |
LATEST_TAG=$(git tag --sort=-v:refname | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+" | head -n1)
if [ -z "$LATEST_TAG" ]; then
LATEST_TAG="v0.0.0"
echo "No existing version tag found, starting from ${LATEST_TAG}"
fi
LATEST_TAG=${{ steps.get_version_info.outputs.latest_tag }}
COMMIT_SHA=${{ steps.get_version_info.outputs.commit_sha }}
PREFIX=${{ steps.get_version_info.outputs.prefix }}
Expand All @@ -91,7 +87,7 @@ jobs:
VERSION=${LATEST_TAG#v}
IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
echo "current_version=${VERSION}" >> $GITHUB_OUTPUT
echo "current_version=v${VERSION}" >> $GITHUB_OUTPUT
# Version increment logic
case $BUMP_TYPE in
Expand Down

0 comments on commit ba24ca4

Please sign in to comment.