2022-10-19 11:20:29 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-02-02 17:15:17 -08:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2022-10-19 11:20:29 -05:00
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
# NOTE: This file is managed by the Digital Team's #
|
|
|
|
|
# Terraform configuration @ hashicorp/mktg-terraform #
|
|
|
|
|
######################################################
|
2021-03-24 15:37:08 -05:00
|
|
|
|
|
|
|
|
# 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
|
2022-10-19 11:20:29 -05:00
|
|
|
fi
|