Skip to content

Commit

Permalink
fix: wrong regex in calulating DEV_NUMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
momeemt committed Oct 18, 2024
1 parent 5b6153b commit 8010d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if [ -z "$LATEST_TAG" ]; then
NEW_TAG="v${{ steps.version.outputs.version }}-dev.1"
else
DEV_NUMBER=$(echo $LATEST_TAG | sed -E 's/^.*-dev-([0-9]+)$/\1/')
DEV_NUMBER=$(echo $LATEST_TAG | sed -E 's/^.*-dev.([0-9]+)$/\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 8010d88

Please sign in to comment.