Skip to content

Commit

Permalink
add ignore step
Browse files Browse the repository at this point in the history
  • Loading branch information
SecurityQQ committed Jun 15, 2024
1 parent 3d29b47 commit 77d62bb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ignore_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" == "master" || "$VERCEL_GIT_COMMIT_REF" == "dev" ]] ; then
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;

else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"build": {
"ignoreCommand": "bash ignore_step.sh"
}
}

0 comments on commit 77d62bb

Please sign in to comment.