We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8dc8042 + ecdfd8d commit 126ce95Copy full SHA for 126ce95
docs/script.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+# https://vercel.com/guides/how-do-i-use-the-ignored-build-step-field-on-vercel
4
5
+echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
6
7
+if [[ "$VERCEL_GIT_COMMIT_REF" == "main" || "$VERCEL_GIT_COMMIT_REF" == "cms" || "$VERCEL_GIT_COMMIT_REF" == "feat/cms" ]] ; then
8
+ # Proceed with the build
9
+ echo "✅ - Build can proceed"
10
+ exit 1;
11
12
+else
13
+ # Don't build
14
+ echo "🛑 - Build cancelled"
15
+ exit 0;
16
+fi
0 commit comments