Skip to content

Commit

Permalink
vercel build script changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci committed Jul 5, 2024
1 parent 13be67d commit 63497b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/vercel_ignored_build_step.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash

# If the branch is gh-pages, then we want to ignore the build step
if [ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]; then
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"

if [[ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]]; then
echo "🛑 - Build cancelled"
exit 0;
else
echo "✅ - Build can proceed"
exit 1;
fi

0 comments on commit 63497b0

Please sign in to comment.