Skip to content

Commit 656dd0d

Browse files
committed
tinker
1 parent e50cf8e commit 656dd0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish-self-hostable-docs-cron.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
3737
run: |
3838
echo "Current latest tag is ${{ steps.get_latest_tag.outputs.tag }}"
3939
LATEST_TAG="${{ steps.get_latest_tag.outputs.tag }}"
40+
41+
# Validate semver format (major.minor.patch)
42+
if ! echo "$LATEST_TAG" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' > /dev/null; then
43+
echo "Error: LATEST_TAG '$LATEST_TAG' does not match semver format (major.minor.patch). Manually publish new version to unblock automatic publishing."
44+
exit 1
45+
fi
46+
4047
NEW_TAG=$(echo $LATEST_TAG | awk -F. '{print $1"."$2+1".0"}')
4148
echo "New tag is $NEW_TAG"
4249
echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)