Skip to content

Commit 1508900

Browse files
committed
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
1 parent 0909e7f commit 1508900

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/build-controller.sh

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ if ! $ACK_GENERATE_BIN_PATH "${apis_args[@]}"; then
205205
fi
206206

207207
pushd "$SERVICE_CONTROLLER_SOURCE_PATH/apis/$ACK_GENERATE_API_VERSION" 1>/dev/null
208+
git pull upstream main --tags 2>/dev/null
208209

209210
echo "Generating deepcopy code for $SERVICE"
210211
controller-gen object:headerFile="$BOILERPLATE_TXT_PATH" paths=./...

0 commit comments

Comments
 (0)