Skip to content

Commit d0adf6a

Browse files
committed
[vercel-preview] test new vercel settings for jitsu-cloud
1 parent 7a51244 commit d0adf6a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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+
79
git diff HEAD^ HEAD --quiet ./
810

911
if [[ $? == 0 ]]; then
@@ -16,6 +18,11 @@ if [[ "$VERCEL_GIT_COMMIT_REF" == "beta" ]]; then
1618
exit 1
1719
fi
1820

21+
if [[ $VERCEL_GIT_COMMIT_REF == *"newjitsu"* ]]; then
22+
echo "❌ Newjitsu branch, skipping deploy"
23+
exit 0
24+
fi
25+
1926
if [[ $VERCEL_GIT_COMMIT_MESSAGE == *"[vercel-preview]"* ]]; then
2027
echo "✅ Commit message contains [vercel-preview] ($VERCEL_GIT_COMMIT_MESSAGE). Deploying"
2128
exit 1

vercel_newjitsu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
echo "$VERCEL_GIT_COMMIT_REF branch doesn't contain newjitsu code, skipping deploy"
4+
exit 0

0 commit comments

Comments
 (0)