We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e50cf8e commit 656dd0dCopy full SHA for 656dd0d
.github/workflows/publish-self-hostable-docs-cron.yml
@@ -37,6 +37,13 @@ jobs:
37
run: |
38
echo "Current latest tag is ${{ steps.get_latest_tag.outputs.tag }}"
39
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
47
NEW_TAG=$(echo $LATEST_TAG | awk -F. '{print $1"."$2+1".0"}')
48
echo "New tag is $NEW_TAG"
49
echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT
0 commit comments