chore: fix release action of ui docs (#13329)

* chore: fix release action of ui docs

* fix ignore build script
This commit is contained in:
Shahed Nasser
2025-08-28 19:38:58 +03:00
committed by GitHub
parent f239f38e58
commit 494d28ebe4
2 changed files with 7 additions and 7 deletions

View File

@@ -1,11 +1,5 @@
#!/bin/bash
# Exit early if the PR branch doesn't start with 'docs/'
if [[ ! "$VERCEL_GIT_COMMIT_REF" =~ ^docs/ ]]; then
echo "🛑 - Build cancelled: Branch does not start with 'docs/'"
exit 0;
fi
if [[ "$1" == "docs-old" ]]; then
echo "🛑 - Build cancelled: Can't build old docs"
exit 0;
@@ -34,6 +28,12 @@ if [[ "$VERCEL_ENV" == "production" && $diffResult -eq 1 ]] ; then
exit 1;
fi
# Exit early if the PR branch doesn't start with 'docs/'
if [[ ! "$VERCEL_GIT_COMMIT_REF" =~ ^docs/ ]]; then
echo "🛑 - Build cancelled: Branch does not start with 'docs/'"
exit 0;
fi
# For preview environments, check project-specific directories
if [[ "$VERCEL_ENV" == "preview" && -n "$PROJECT_NAME" ]]; then
# Check for changes in the specific project directory