Skip to content

Commit

Permalink
Create ignored-build-step.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Dec 12, 2023
1 parent cc37ba4 commit 727e60a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ignored-build-step.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"

if [[ "$VERCEL_GIT_COMMIT_REF" == "preview" || "$VERCEL_GIT_COMMIT_REF" == "main" ]] ; then
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;

else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi

0 comments on commit 727e60a

Please sign in to comment.