File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 44# see https://vercel.com/support/articles/how-do-i-use-the-ignored-build-step-field-on-vercel
55
66# Deployment rules are: (./configurator/frontend folder changed) AND (branch == beta or commit contains [vercel-preview] string)
7+ cd configurator/frontend
8+
79git diff HEAD^ HEAD --quiet ./
810
911if [[ $? == 0 ]]; then
@@ -16,6 +18,11 @@ if [[ "$VERCEL_GIT_COMMIT_REF" == "beta" ]]; then
1618 exit 1
1719fi
1820
21+ if [[ $VERCEL_GIT_COMMIT_REF == * " newjitsu" * ]]; then
22+ echo " ❌ Newjitsu branch, skipping deploy"
23+ exit 0
24+ fi
25+
1926if [[ $VERCEL_GIT_COMMIT_MESSAGE == * " [vercel-preview]" * ]]; then
2027 echo " ✅ Commit message contains [vercel-preview] ($VERCEL_GIT_COMMIT_MESSAGE ). Deploying"
2128 exit 1
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " ❌ $VERCEL_GIT_COMMIT_REF branch doesn't contain newjitsu code, skipping deploy"
4+ exit 0
You can’t perform that action at this time.
0 commit comments