Skip to content

Commit

Permalink
only-commit-some.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
c0repwn3r committed Mar 7, 2024
1 parent 818bb90 commit c4af42a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions only-deploy-some.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" == "staging" || "$VERCEL_GIT_COMMIT_REF" == "master" || "$VERCEL_GIT_COMMIT_REF" == "qa1" || "$VERCEL_GIT_COMMIT_REF" == "qa2" ]] ; then
# Proceed with the build
echo "building"
exit 1;

else
# Don't build
echo "ignoring build because not staging, master, qa1, qa2"
exit 0;
fi

0 comments on commit c4af42a

Please sign in to comment.