website: add should-build script (#1012)

This commit is contained in:
Bryce Kalow authored and GitHub committed 2021-03-24 16:37:08 -04:00
1 parent 6605b4c9f8
commit c95f6df36d
3 files changed
+506 -275

No files matched your search

+13
View 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 ./ ../internal/gen/controller.swagger.json
fi