mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
feat: adds should-build website script (#11135)
This commit is contained in:
13
website/scripts/should-build.sh
Normal file
13
website/scripts/should-build.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This is run during the website build step to determine if we should skip the build or not.
|
||||
# More information: https://vercel.com/docs/platform/projects#ignored-build-step
|
||||
|
||||
if [[ "$VERCEL_GIT_COMMIT_REF" == "stable-website" ]] ; then
|
||||
# Proceed with the build if the branch is stable-website
|
||||
echo "✅ - Build can proceed"
|
||||
exit 1;
|
||||
else
|
||||
# Check for differences in the website directory
|
||||
git diff --quiet HEAD^ HEAD ./
|
||||
fi
|
||||
Reference in New Issue
Block a user