Skip to content

Commit

Permalink
fix: conform to semver
Browse files Browse the repository at this point in the history
  • Loading branch information
momeemt committed Oct 18, 2024
1 parent a660940 commit 2ebe070
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
- name: Get latest dev tag
id: new-tag
run: |
LATEST_TAG=$(gh release list --limit 100 | grep "v-${{ steps.version.outputs.version }}-dev-" | sort -V | tail -n 1 | awk '{print $3}')
LATEST_TAG=$(gh release list --limit 100 | grep "v${{ steps.version.outputs.version }}-dev." | sort -V | tail -n 1 | awk '{print $3}')
if [ -z "$LATEST_TAG" ]; then
NEW_TAG="v-${{ steps.version.outputs.version }}-dev-1"
NEW_TAG="v${{ steps.version.outputs.version }}-dev.1"
else
DEV_NUMBER=$(echo $LATEST_TAG | sed -E 's/^.*-dev-([0-9]+)$/\1/')
NEW_TAG="v-${{ steps.version.outputs.version }}-dev-$((DEV_NUMBER + 1))"
NEW_TAG="v${{ steps.version.outputs.version }}-dev.$((DEV_NUMBER + 1))"
fi
echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 2ebe070

Please sign in to comment.