github.com/pulumi/terraform@v1.4.0/website/scripts/should-build.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  ######################################################
     4  # NOTE: This file is managed by the Digital Team's   #
     5  # Terraform configuration @ hashicorp/mktg-terraform #
     6  ######################################################
     7  
     8  # This is run during the website build step to determine if we should skip the build or not.
     9  # More information: https://vercel.com/docs/platform/projects#ignored-build-step
    10  
    11  if [[ "$VERCEL_GIT_COMMIT_REF" == "stable-website"  ]] ; then
    12    # Proceed with the build if the branch is stable-website
    13    echo "✅ - Build can proceed"
    14    exit 1;
    15  else
    16    # Check for differences in the website directory
    17    git diff --quiet HEAD^ HEAD ./
    18  fi