From 1508900dc21470b88a8d1e99945582110f90a786 Mon Sep 17 00:00:00 2001 From: michaelhtm <98621731+michaelhtm@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:51:14 -0700 Subject: [PATCH] chore: improve controller build script to pull latest tags This will ensure we don't accidentally push changes if the PRs are not up to date --- scripts/build-controller.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build-controller.sh b/scripts/build-controller.sh index abdb7ee7..8040dcde 100755 --- a/scripts/build-controller.sh +++ b/scripts/build-controller.sh @@ -205,6 +205,7 @@ if ! $ACK_GENERATE_BIN_PATH "${apis_args[@]}"; then fi pushd "$SERVICE_CONTROLLER_SOURCE_PATH/apis/$ACK_GENERATE_API_VERSION" 1>/dev/null + git pull upstream main --tags 2>/dev/null echo "Generating deepcopy code for $SERVICE" controller-gen object:headerFile="$BOILERPLATE_TXT_PATH" paths=./...