vagrant/website/scripts/should-build.sh
oss-core-libraries-dashboard[bot] b0593b6a72
Some checks failed
/ sync-acceptance (push) Has been cancelled
[COMPLIANCE] Update Copyright and License Headers (Batch 7 of 7) (#13759)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-23 11:11:29 +05:30

21 lines
No EOL
742 B
Bash

#!/usr/bin/env bash
# Copyright IBM Corp. 2010, 2025
# SPDX-License-Identifier: BUSL-1.1
######################################################
# NOTE: This file is managed by the Digital Team's #
# Terraform configuration @ hashicorp/mktg-terraform #
######################################################
# 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