website: add should-build script (#1012)

pull/1031/head
Bryce Kalow 5 years ago committed by GitHub
parent 6605b4c9f8
commit c95f6df36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

File diff suppressed because it is too large Load Diff

@ -6,7 +6,7 @@
"dependencies": {
"@apidevtools/json-schema-ref-parser": "9.0.6",
"@hashicorp/mktg-global-styles": "2.1.0",
"@hashicorp/nextjs-scripts": "16.0.1",
"@hashicorp/nextjs-scripts": "16.3.0",
"@hashicorp/react-alert-banner": "5.0.0",
"@hashicorp/react-button": "4.0.0",
"@hashicorp/react-content": "6.1.1",

@ -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
Loading…
Cancel
Save